MySQL reset

MySQL reset

offline
  • gamzzy 
  • Legendarni građanin
  • Pridružio: 24 Apr 2003
  • Poruke: 10725
  • Gde živiš: Novi Sad

Kako da pobrisem sva podesavanja mysql-a i krenem iz pocetka
U pitanju je Linux i MySQL 5.0

Prvenstveno mi je bitno da uklonim root password. Ostalo mi je manje vise nebitno, sve baze su backup-ovane, u startu nije bilo password-a, samo me nista ne pitajte osim ako ne shvatate sta mi treba.

Dopuna: 16 Avg 2006 19:40

Resio sam:

  1. [root@fileserver2 /]# rm -r /var/lib/mysql/
  2. [root@fileserver2 /]# mysql_install_db
  3. Installing all prepared tables
  4. Fill help tables
  5.  
  6. To start mysqld at boot time you have to copy support-files/mysql.server
  7. to the right place for your system
  8.  
  9. PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
  10. To do so, start the server, then issue the following commands:
  11. /usr/bin/mysqladmin -u root password 'new-password'
  12. /usr/bin/mysqladmin -u root -h fileserver2 password 'new-password'
  13. See the manual for more instructions.
  14.  
  15. You can start the MySQL daemon with:
  16. cd /usr ; /usr/bin/mysqld_safe &
  17.  
  18. You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
  19. cd sql-bench ; perl run-all-tests
  20.  
  21. Please report any problems with the /usr/bin/mysqlbug script!
  22.  
  23. The latest information about MySQL is available on the web at
  24. http://www.mysql.com
  25. Support MySQL by buying support/licenses at http://shop.mysql.com
  26. [root@fileserver2 /]# cd /etc/init.d/
  27. [root@fileserver2 init.d]# ./mysqld restart
  28. Stopping MySQL:                                            [  OK  ]
  29. Starting MySQL:                                            [  OK  ]
  30. [root@fileserver2 init.d]# mysql
  31. Welcome to the MySQL monitor.  Commands end with ; or \g.
  32. Your MySQL connection id is 2 to server version: 5.0.22
  33.  
  34. Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
  35.  
  36. mysql>



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
Ko je trenutno na forumu
 

Ukupno su 887 korisnika na forumu :: 53 registrovanih, 8 sakrivenih i 826 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., acatomic, Armadillo, Bojan198527, bojcistv, Borski1977, Buzdovan, CZP10C, daedal, dankisha, darkdruid72, darko_c, delboy, Dragon Order, FOX, galico, Georgius, istina, ivica976, jalos, Jeremiah, Jose, K2, kolle.the.kid, KonstantinR, Leonov, Lieutenant, madun123, mainstream, miki kv, mikidragi, miljannis, milos.cbr, milutin134, Mlav, Ne doznajem se u oružje, niksa517, nisamBot, oddsock, pein, peradetlić, pfc74, Pohovani_00, PrincipL, rajkoplje, sekretar, Stoorb, suton, Trpe Grozni, virked, W123, zaoka, zokizemun