Quote:
Originally Posted by bclark
Ok, I figured it out.
It was step 9 of the mysql version 4.1.22 installation instructions that confused me.
It reads:
9. If you have not installed MySQL before, you must create the MySQL
grant tables:
shell> bin/mysql_install_db --user=mysql
If you run the command as `root', you should use the `--user'
option as shown. The value of the option should be the name of the
login account that you created in the first step to use for
running the server. If you run the command while logged in as that
user, you can omit the `--user' option.
I thought this meant that the mysql superuser would be created to be bclark. I didn't understand that the mysql superuser is root regardless of what you do here.
So I do:
mysql -u root
And I see:
----------------+
| current_user() |
+----------------+
| root@localhost |
+----------------+
1 row in set (0.00 sec)
I do:
mysql> select user, password, host from mysql.user;
+------+----------+------------+
| user | password | host |
+------+----------+------------+
| root | | localhost |
| root | | redacted |
| | | redacted |
| | | localhost |
+------+----------+------------+
Now my CREATE DATABASE command works fine.
I hope answering my own question here will save other mysql newbies who may have been confused in the same way I was some time.
I can't understand that. What did you write there?
mysql> select user, password, host from mysql.user; ???? command
select user or for example-
select tupkreten and is it coma after that?