- Code:
-
# /etc/init.d/mysql stop
Shutting down MySQL..
- Code:
-
# mysqld_safe --skip-grant-tables --skip-networking &
[1] 4983
# Starting mysqld daemon with databases from /var/lib/mysql
- Code:
-
# mysql mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.0.21-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
- Code:
-
mysql> update user set password=password('aaaaaaaa') where user="root" and host="localhost";
Query OK, 0 rows affected (0,00 sec)
Rows matched: 1 Changed: 0 Warnings: 0
- Code:
-
mysql> exit
Bye
# mysqladmin shutdown
STOPPING server from pid file /var/lib/mysql/debian.pid
030811 14:38:40 mysqld ended
[1]+ Done /usr/local/mysql/bin/mysqld_safe --skip-grant-tables --skip-networking
- Code:
-
# /etc/init.d/mysql start
Starting MySQL
- Code:
-
# mysql -u root -p
source :
http://www.commentcamarche.net/forum/affich-2755583-galere-a-n-en-plus-finir-avec-l-acces-a-mysql