Hello everyone,
I wonder if someone could help me here.
For some reason, I am no longer able to login to MySQLdatabase on my jail.
Here is the error message:
I tried to reset the password using the following:
But the error message is still the same.
Could anyone help please
I wonder if someone could help me here.
For some reason, I am no longer able to login to MySQLdatabase on my jail.
Here is the error message:
Code:
root@sqljail:/ # mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
/usr/local/etc/rc.d/mysql-server stop
Code:
vi ~/reset.sql
UPDATE mysql.user SET Password=PASSWORD('MYPASSWORD') WHERE User='root';
FLUSH PRIVILEGES;
mysqld_safe --init-file=~/reset.sql &
Code:
vi ~/localhost.sql
GRANT ALL PRIVILEGES ON *.* TO 'sqldbadmin'@'localhost' IDENTIFIED BY 'MYPASSWORD' WITH GRANT OPTION;
FLUSH PRIVILEGES;
mysqld_safe --init-file=~/reset.sql &
But the error message is still the same.
Could anyone help please