Random error: #1045 Cannot log in to the MySQL server -
ive had mysql , running month now. using yesterday, , today go login via phpmyadmin , command line , can't. if changed password overnight or something. im trying login using root user. do?
edit
this mysql running on local laptop development. account on root account, , no caps lock not on.
http://www.cyberciti.biz/tips/recover-mysql-root-password.html says 5 step process work, try @ own risk obviously. source has same steps. won't work on windows, similar should http://www.debian-administration.org/articles/442
stop mysql service using /etc/init.d/mysql stop
start mysql without password using mysqld_safe --skip-grant-tables &
connect server using mysql -u root
change root password:
mysql> use mysql; mysql> update user set password=password("new-root-password") user='root'; mysql> flush privileges; mysql> quit
stop server: /etc/init.d/mysql stop
start server: /etc/init.d/mysql start
test: mysql -u root -p
Comments
Post a Comment