LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-24-2005, 02:22 PM   #1
Die Woud
Member
 
Registered: Apr 2005
Distribution: Fedora
Posts: 33

Rep: Reputation: 15
MySQL and Dreamweaver MX


I am having trouble with dreamweaver connecting to mysql. i amr unning mysql 5 and php 5 on a apache server, i have tested the php and it works.The mysql is running but dreamweaver does not want to connect to the databse specified, it give the error "unidentified error has ecoured", this happens when i try connecting to a databsse using the desing mode of dreamweaver when i enter the code mode and type;

$host="hostname"
$DB="database"
$user="username"
$passwd="passwd"

mysql_connect($host, $user, $passwd)
or die('Unable to connect to server ' . $host);

he gives me a white page and no error, this must mean he finds the server but cant connect, so please if anyone can shed some light one the situation...
 
Old 10-24-2005, 03:11 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
What is showing in the mysql logs?

You need to see if mysqld sees the connection, then track it from there..

Can you connect with the mysql client ok?
 
Old 10-24-2005, 03:20 PM   #3
Die Woud
Member
 
Registered: Apr 2005
Distribution: Fedora
Posts: 33

Original Poster
Rep: Reputation: 15
okay, give me the deatils, how do i connect wiht client, how do i check logs, im a real noob wiht linux, only know a bit so..details
 
Old 10-24-2005, 04:06 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
I am assuming mysqld is installed on a separate Linux machine..

Logs are in /var/log/mysql.log
To view it while it is running, do tail -f /var/log/mysql.log in a console as root.

The client name and password need to be given permission to bind to an mysql table.
If this sounds foreign to you, it probably hasn't been done yet..
From a console on the server do /bin/mysqladmin version & /bin/mysqladmin variables to make sure you can connect to the server from it's local user.

Next is bin/mysqlshow
then bin/mysqlshow mysql
then bin/mysql -e "SELECT Host,Db,User FROM db" mysql
These prove that the server can be talked to from a local connection.

Next look at netstat -tlnp and see if it is listening on more than only 127.0.0.1:3306
If it is just 127.0.0.1 check /etc/mysql/my.cnf and change the line "bind-address = 127.0.0.1" to the correct interface ip number.
Also check if the line "# skip-networking" has the hash at the beginning. If not, put in a hash.
To edit the file, use nano or pico. eg nano /etc/mysql/my.cnf or a text editor from the menu.

Then restart mysqld and test again.
 
Old 11-11-2005, 01:20 PM   #5
Die Woud
Member
 
Registered: Apr 2005
Distribution: Fedora
Posts: 33

Original Poster
Rep: Reputation: 15
i tried that, but still i get the error. i tried telnet <mysqlip> 33306 on my windows machine, but it made an error, what can be wrong there, maybe that is the cuase of my issue?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dreamweaver MX, MySql, apache and PHP ...? shahg_shahg Linux - Software 1 07-23-2005 04:50 AM
Dreamweaver MX, MySql, apache and PHP ...? shahg_shahg Linux - Software 1 07-23-2005 04:49 AM
Dreamweaver, PHP, MySQL, and Apache Web server bentman78 Linux - Software 18 02-06-2005 05:09 AM
http 405 error when connecting mysql to Dreamweaver Onemessedupjedi Linux - Software 0 08-15-2004 09:39 PM
Dreamweaver and Apache, PHP and MySQL WiWa Linux - Newbie 3 09-16-2003 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration