Tell my how to set up "mysql" step by step, please
I've installed it. But it doesn't want to run.
AFAIK this is because I have no grant tables. How to create them? What to do after that? And I have no some "socket" (I don't know how to make it). Can you tell my step by step how to set it up so that I can run avarage commands (select, create, etc). Thanks. |
Here you go.. Chapter 2 of the online MyQL Reference Manual:
http://dev.mysql.com/doc/mysql/en/installing.html You should really ask more detailed questions so members here don't have to rewrite information that is already out there, or you'll just get relinked to it.. etc. |
chown mysql:mysql all of the files in the mysql directory under /var and in its subdirectory. Make sure you set a password with mysqladmin too.
John |
You're right - I've become very lazy...
|
Well, I still don't uderstand what to do.
When I run "mysql_install_db" it prints: Code:
root@darkstar:~# mysql_install_db Code:
root@darkstar:~# mysqladmin -u root xxx xxx "mysqld" doesn't run too: Code:
root@darkstar:~# mysqld_safe & Thanks. |
Can anyone help me?
|
chown -R mysql.mysql /var/lib/mysql
Then attempt to start mysql. |
Thanks, trickykid! This works!
"mysqld_safe" works. But I'm sure to have other questions tomorrow... so don't forget this thread:) |
All times are GMT -5. The time now is 03:53 AM. |