Installing mySQL under Linux

mySQL is a robust Relational Database Management System. Currently it runs under Linux, Windows, OS2, and several other operating systems. Aside from the fact that it is free (yes, you heard right), mySQL has become the database management system of choice for many small and large solutions (Yahoo has been known to use mySQL).
This tutorial teaches how to install mySQL under Linux.

Step 7: mySQL Owns Itself

In order for mySQL to make changes to the folders that were created for it when you installed, you must give the proper permissions to the mysql user and group. You also want to make sure that root is the only user who owns the mysql directory.

Using the prefix that you used in step 4, execute the following commands. I am using the default prefix:

"chown -R root /usr/local/mysql"
"chown -R mysql /usr/local/mysql/var"
"chgrp -R mysql /usr/local/mysql"

The first command changed ownership of /usr/local/mysql and all subfolders and files (hence the -R for recursive).

The second command gave the mysql user ownership of /usr/local/mysql/var and all of it's subfolders and files (-R again). Var is where mySQL stores all of your database information.

The last command gave the mysql group, of which the mysql user is a part of, permission to access all files within the /usr/local/mysql folder.

Now we can finish our installation and make mySQL a permanent part of our Linux system!

<<< Installing Default Databases (Grant Tables) Starting up mySQL >>>

Comments

How about Winn2000 users?

December 19, 2001 by Helle M

I really don't know much about MySQL, but would like to also read about how you do this using Win2000 ?

Helle:-)

RE: How about Winn2000 users?

March 18, 2002 by Plamen Jelezov

Well, actually you will have no problems with the MySQL itself, but there are few bugs in the W2K OS. It took me about 2 weeks to make it work. Now it's perfect. Works very well with the OS and the PWS. I hate heavy things and that'a why removed the IIS. If you decide to start working with it, just mail me back and I'll send you full dscription, how to do it!

pj - pj@buldata.com

RE: RE: How about Winn2000 users?

March 20, 2002 by Stefan Gomez

I am extremely new to php and mysql. I am used to plain old access databases. My web host only accepts mysql databases. After going through the endless pages of setting up mysql, I have yet to find information on how to create mysql databases. If I got pass this, I'm sure I'd be using php with a mysql database in no time. I've managed to create a database on my host, and I've downloaded something to edit it. But I'm still lost on how to create the database. And, it'd be much easier for me to just convert my access databases to mysql. How would I do this, and how would I transfer it to the server? the only thing I can see so far is that I would have to re enter everything into the mysql server? Can't it just be as easy as uploading my database, I wish it could be. If anyone would be willing to help, I'd be very grateful,

Thanks,

Stefan

RE: How about Winn2000 users?

April 17, 2002 by Cheryl Floyed

I only read this last night but it may help... I read that you can export to MySQL from Access. I also read that you can use a free utility called DataTools... Again, don't hold me to this because I've only read it but it is a starting place.

See all 7 Comments

You must me logged in to write a comment.