Ok so I've installed the mysqld package for slackware. I've secured all the default passwords, and added a user. Problem is this:
Code:
nathacof@confucious:~$ mysql -u nathacof -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 33 to server version: 5.0.24a
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show grants;
+---------------------------------------------------------------------------------------------------------+
| Grants for @localhost |
+---------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO ''@'localhost' IDENTIFIED BY PASSWORD '*3F362EA315B674EE4C93FA7AF2F5C4F3F6067405' |
+---------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql>
As you can see I specified the user nathacof, but ended up logging in as one of the default users who only have access to the test database.
I wanted to make sure nathacof was actually in the user table so I logged into mysql with the root username:
Code:
mysql> SELECT * FROM mysql.user WHERE User="nathacof";
+------+----------+-------------------------------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+
| Host | User | Password | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv | Show_db_priv | Super_priv | Create_tmp_table_priv | Lock_tables_priv | Execute_priv | Repl_slave_priv | Repl_client_priv | Create_view_priv | Show_view_priv | Create_routine_priv | Alter_routine_priv | Create_user_priv | ssl_type | ssl_cipher | x509_issuer | x509_subject | max_questions | max_updates | max_connections | max_user_connections |
+------+----------+-------------------------------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+
| % | nathacof | *3F362E6315B674DE4C83FA7AF2F5C4F3F6067405 | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | | | | | 0 | 0 | 0 | 0 |
+------+----------+-------------------------------------------+-------------+-------------+-------------+-------------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+
1 row in set (0.00 sec)
mysql>
(not sure how smart it is to put my password hash out there but I changed some digits for ya =D)
Any way if any one knows where I should be looking for answers I would greatly appreciate it.
Oh btw this is something I thought was a bit odd:
Code:
nathacof@confucious:~$ mysql
ERROR 1045 (28000): Access denied for user 'nathacof'@'localhost' (using password: NO)
nathacof@confucious:~$ mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 36 to server version: 5.0.24a
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show grants
-> ;
+---------------------------------------------------------------------------------------------------------+
| Grants for @localhost |
+---------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO ''@'localhost' IDENTIFIED BY PASSWORD '*3F362E6314A694EE4C93FA7AF2F5C4F3F6067405' |
+---------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql>
Why does it recognize me as nathacof when attempting to access without using my password, but when I do specify the password I get logged in as ''@localhost?
Any help would be greatly appreciated.