![]() |
Using MacOS X, Apache, PHP, MySQL, Dreamweaver UltraDev, and Phakt |
|
|
||||||||||||||||||
![]() |
Page 6 -- Setting Up UltraDev to Talk to MySQL Once you have PHP setup on your Web server, MySQL installed, and your JDBC drivers installed, it's time to talk to the database. When you create a PHP server model in your Site Definitions (refer to your UltraDev documentation for information on creating site definitions), you'll need to create a connection to your database before you can create recordsets. For the Mac types: If you are developing with UltraDev and serving web pages from the same machine, OS X must be running for this to work. If you are running UltraDev in native OS 9.x, this won't work since Apache, PHP, and MySQL run under OS X. Boot you Mac into OS X, and run UltraDev in Classic mode. The process is the same regardless of whether you're on a Mac or a PC. The screen will just look a little bit different between the two platforms.
In the example above, I've create a connection called "cnMySQL" that will be used on my PHP pages. In the following example, I've used the "mysql" database file that is created automatically for you when you run the installation script when installing MySQL. It contains users, passwords, and other database-related permissions. In the UltraDev Connections section:
In the PHP Connections section:
|
|||||||||||||||||
| Copyright ©2001 Christopher Owens. The logos above are copyrighted by their respective owners, organization, and corporations. |
||||||||||||||||||