• Scholarships & Financial Aid
  •  
  • About NWU
  •  
  • Give to NWU
  • Campus Directory
  •  
  • Search
Computing Services and Instructional Technology
Help: (402) 465-7777 | Smith-Curtis Rm. 121 | Front Desk: (402) 465-2341 | Fax: (402) 465-2198

What host is my MySQL database on? How do I connect to it in PHP?

Your MySQL database lives on a host called 'db'.

To connect in PHP, you'll want to do something like this:

$dbh = mysql_connect('db', 'username', 'password') or die("Could not connect: " . mysql_error());

You will receive your username and password when you request a database.

‹ How do I request a MySQL database? up How do I make a folder writable by a web application? ›
  • Printer-friendly version

Navigation

  • News
  • Get Support
  • START
  • Telecomm. Support
  • Downloads
  • Activate Your Account
  • Guest Accounts
  • Reset Your Password
  • Student Web Sites
  • Suggestion Box
  • View System Status

User login

  • Request new password

Computing Services and Instructional Technology

Help: (402) 465-7777 | Smith-Curtis Rm. 121 | Front Desk: (402) 465-2341 | Fax: (402) 465-2198
  • Current Undergraduates
  • Graduate and Adult Students
  • Prospective Students
  • Alumni and Friends
  • Parents and Families
  • Academics
  • Prairie Wolves Athletics
  • Press and Media
  • About NWU
  • Give to NWU
  • Faculty and Staff Login
  • Site Map