2008-02-15, 05:29 PM
2008-02-15, 09:17 PM
here's a sample of how to do that
Create a mysql database:
The word "exercise" below being used in the comands is the name of the database change it to what your database name is going to be called.
Code:
cd /usr/local/mysql/bin
./mysql -u root -p
enter the "password"
use mysql;
INSERT INTO db (host,db,user,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Dro
p_priv) values ('localhost','exercise','root','Y','Y','Y','Y','Y','Y');
taken from the LAMP section here
now type
Code:
quit
then
Code:
./mysqladmin -u root -p create exercise
2008-02-15, 09:54 PM
Thank You
Quote:here's a sample of how to do that
Create a mysql database:
The word "exercise" below being used in the comands is the name of the database change it to what your database name is going to be called.
Code:cd /usr/local/mysql/bin
./mysql -u root -p
enter the "password"
use mysql;
INSERT INTO db (host,db,user,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Dro
p_priv) values ('localhost','exercise','root','Y','Y','Y','Y','Y','Y');
<div>
taken from the LAMP section here
now type
Code:quit
then
Code:./mysqladmin -u root -p create exercise
</div>
2008-02-19, 05:43 PM
mysql -u root -p
create database <name>;</name>