MySQL Database Setup: Difference between revisions

From ASSS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 5: Line 5:




After getting MySQL installed, install the MySQL administrator (Windows, Linux, and OS X are supported) which is also found on the MySQL download page.
After getting MySQL installed, install the MySQL administrator (Windows, Linux, and OS X are supported) which is also found on the MySQL download page.<br>
<b>Create a user, a password for this user, and a database in MySQL. The default is asss for the user name and database name, and your choice on the password.  
Create a user, a password for this user, and a database in MySQL. The default is asss for the user name and database name, and your choice on the password. <br>
Assign permissions between the user and the database.
Assign permissions between the user and the database.<br>
In global.conf in the [mysql] section change the user name, password, and the table name to what you have chosen above. The hostname should be localhost if MySQL is running on the same computer the server is. Otherwise you can use an IP address.
In global.conf in the [mysql] section change the user name, password, and the table name to what you have chosen above. The hostname should be localhost if MySQL is running on the same computer the server is. Otherwise you can use an IP address.<br>
A sample would look like:
A sample would look like:<p>


[mysql]
[mysql]<br>
hostname=localhost
hostname=localhost<br>
user=asss
user=asss<br>
password= whatever you selected for a password
password= whatever you selected for a password<br>
database=asss
database=asss<p>


In modules.conf, enable database:mysql and database:aliasdb.
In modules.conf, enable database:mysql and database:aliasdb.

Revision as of 18:32, 12 September 2005

Detailed MySQL instructions can be found at http://dev.mysql.com/doc/mysql/en/Installing.html.


After getting MySQL installed, install the MySQL administrator (Windows, Linux, and OS X are supported) which is also found on the MySQL download page.
Create a user, a password for this user, and a database in MySQL. The default is asss for the user name and database name, and your choice on the password.
Assign permissions between the user and the database.
In global.conf in the [mysql] section change the user name, password, and the table name to what you have chosen above. The hostname should be localhost if MySQL is running on the same computer the server is. Otherwise you can use an IP address.

A sample would look like:

[mysql]
hostname=localhost
user=asss
password= whatever you selected for a password
database=asss

In modules.conf, enable database:mysql and database:aliasdb.