Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Connect to SQL
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Connect to SQL
Connect to SQL
07-04-2011 9:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi,
I'm sure I'm being dim, but can't work this one out!
I'm trying to use php in my ccgi space to connect to my SQL database, but I can't seem to make it work.
I'm currently using the following - I'm assuming it's the $server definition that's not correct but I don't know what to change it to!
$server = "rumpus";
$user = "greenofashbourne";
$pass = "password";
$database = "greenofashbourne_pn";
$connection = mssql_connect($server, $user, $pass)
Any help appreciated.
Thanks,
Stuart
I'm sure I'm being dim, but can't work this one out!
I'm trying to use php in my ccgi space to connect to my SQL database, but I can't seem to make it work.
I'm currently using the following - I'm assuming it's the $server definition that's not correct but I don't know what to change it to!
$server = "rumpus";
$user = "greenofashbourne";
$pass = "password";
$database = "greenofashbourne_pn";
$connection = mssql_connect($server, $user, $pass)
Any help appreciated.
Thanks,
Stuart
Message 1 of 6
(951 Views)
5 REPLIES 5
Re: Connect to SQL
07-04-2011 9:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The password is not the same as your account password, it is created when you activated MySQL and included in the email that is sent to you after activation.
If you can't remember it just disable MySQL and enable it again and wait for the email with the connection details.
If you can't remember it just disable MySQL and enable it again and wait for the email with the connection details.
Message 2 of 6
(350 Views)
Re: Connect to SQL
07-04-2011 9:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Amazingly, I have got the email with the database password on it - so I know that is correct (and I can log into the SQL through PHPMyAdmin - I just can't use it with a .php file called from ccgi.greenofashbourne.plus.com).
Thanks,
Stuart
Thanks,
Stuart
Message 3 of 6
(350 Views)
Re: Connect to SQL
07-04-2011 9:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
try rumpus.plus.net
Message 4 of 6
(350 Views)
Re: Connect to SQL
07-04-2011 10:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks! That worked (after also spotting that I needed to change mssql to mysql!)
Cheers,
Stuart
Cheers,
Stuart
Message 5 of 6
(350 Views)
Re: Connect to SQL
07-04-2011 11:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
"rumpus" alone would probably work after correcting the name of the "connect" function.

David
Message 6 of 6
(350 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page