Difference between revisions of "MySQL Database Setup"

From ASSS Wiki
Jump to: navigation, search
(personal messages are inappropriate in this context IMO)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
===Installing MySQL===
 
Detailed MySQL instructions can be found at http://dev.mysql.com/doc/mysql/en/Installing.html.
 
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.<br>
+
===Getting ASSS and MySQL talking===
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>
+
#In modules.conf, enable database:mysql and database:aliasdb.
Assign permissions between the user and the database.<br>
+
#After getting MySQL installed (and functioning), install the MySQL administrator (NT based Windows, Linux, and OS X are supported) which is also found on the MySQL download page.
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>
+
#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.
A sample would look like:<p>
+
#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.
[mysql]<br>
 
hostname=localhost<br>
 
user=asss<br>
 
password=whatever you selected for a password<br>
 
database=asss<p>
 
 
 
In modules.conf, enable database:mysql and database:aliasdb.
 
 
 
  
 +
A sample would look like:
 +
<pre>[mysql]
 +
hostname=localhost
 +
user=asss
 +
password=whatever you selected for a password
 +
database=asss</pre>
  
 +
Good Luck!
  
 
[[Category:ASSS]]
 
[[Category:ASSS]]
 
[[Category:Guides]]
 
[[Category:Guides]]

Latest revision as of 20:34, 12 September 2005

Installing MySQL

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

Getting ASSS and MySQL talking

  1. In modules.conf, enable database:mysql and database:aliasdb.
  2. After getting MySQL installed (and functioning), install the MySQL administrator (NT based Windows, Linux, and OS X are supported) which is also found on the MySQL download page.
  3. 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.
  4. Assign permissions between the user and the database.
  5. 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

Good Luck!