UCI: Dean of Students: Campus Organizations: CORE Internet Services
News:
 
  Home   Forum   Help Search Login Register  
* *
Pages: [1]   Go Down
  Print  
Author Topic: What is MySQL?  (Read 2143 times)
jnickles
Guest
« on: November 07, 2006, 02:23:32 PM »

MySQL is an open source database that can greatly expand the functionality of your website. It is an advanced feature active and running on the UCI Spirit Server for clubs and organizations and is available by request. We will set up and configure a MySQL database for you, but the rest is up to you. If you are not interested in coding/scripting, this feature is probably not for you.


To use your MySQL database, we recommend using PHP code in your web pages to handle processes between the database and the web user, but we do not have the resources to provide any support for this, so you will have to do your own research.

    * http://www.mysql.com
    * http://www.php.net

After your MySQL database has been set up, you will be given a MySQL login and password which should be the same as your group's UCI Spirit account. The HOST name you use in your PHP code is "localhost", NOT "spirit.dos.uci.edu". Here is an example from php.net modified for use with the UCI Spirit Server...

<?php
/* Connecting, selecting database */
$link = mysql_connect("localhost", "SpiritUsername", "SpiritPassword")
?Ç ?Ç  or die("Could not connect : " . mysql_error());
echo "Connected successfully";
mysql_select_db("DBnameUsuallyJustSpiritUserName") or die("Could not select database");
/* Closing connection */
mysql_close($link);
?>



*If you would like more informations on MySQL tags, please click here
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Forum Login

Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2009, 04:29:01 PM

Login with username, password and session length

Forum Information

Please Note: A CIS (formerly Spirit) forum account is currently different than a regular CIS account.

If you would like to participate in the Forum, you will need to register with a new nickname. We are working on integrating the two systems.

Recent Posts

TinyPortal v1.0 beta 3 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!