| Sign In/My Account | View Cart |
| Article: |
An Introduction to WebObjects | |
| Subject: | MySQL | |
| Date: | 2003-10-09 12:51:50 | |
| From: | anonymous2 | |
|
can you provide a detail explanation of the connection properties in regards to MySQL - in particualr how to connect to a local MySQL server and a remote MySQL server.
|
||
Showing messages 1 through 4 of 4.
MySQL
MySQL
In order to set up MySQL you will need to install it first. If you have not, I recommend using Aaron Faby's fantastic installer (http://www.serverlogistics.com). After installing MySQL you will need the correct JDBC driver, which can be downloaded from the MySQL website.
From there, you will need to do the following, using the "Model:Switch Adaptor..." menu item:
1) make sure your EOModel is using the JDBC connector
2) enter the Username for the database you are connecting to
3) enter the Password for the user/database you are connecting to
4) enter the URL for your database (i.e. jdbc:mysql://localhost/my_database)
5) enter the JDBC driver information (i.e. org.gjt.mm.mysql.Driver)
I hope that information helps.