Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 150094

Re: When connecting to a database, dreamweaver gives the error message [MySQL Error

$
0
0

Max Resnikoff wrote:

 

ok so how do i resolve my issue?

 

Sounds like a complete mess to me.

 

I'd do as Rob suggests - export your database from cPanel via the remote phpMyAdmin if you say its all good and then import it into your local mysql server again using local phpMyAdmin.

 

I would completely forget trying to connect to your remote database through Dreamweaver as its completely unnecessary. Re-instate your local connection details in the DW connections panel and get your website up and running again at local level.

 

When you are good an ready to upload it to the remote server just go to your 'Connections' folder in your local website folder and in there you will find a connections php file. Open it and replace the local connection details with the remote connection details. It will look something like below:

 

<?php

# FileName="Connection_php_mysql.htm"

# Type="MYSQL"

# HTTP="true"

$hostname_drama_database = "localhost";

$database_drama_database = "drama_database";

$username_drama_database = "username";

$password_drama_database = "password";

$drama_database = mysql_pconnect($hostname_drama_database, $username_drama_database, $password_drama_database) or trigger_error(mysql_error(),E_USER_ERROR);

?>

 

 

Save the file then upload all the files and folders to the remote server. job done.


Viewing all articles
Browse latest Browse all 150094

Trending Articles