LinuxQuestions.org
Visit Jeremy's Blog.
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 11-11-2005, 11:43 AM   #1
Die Woud
Member
 
Registered: Apr 2005
Distribution: Fedora
Posts: 33

Rep: Reputation: 15
MySql trouble


ok. i have installed mysql, apache and php 5 and they are all running. my apache and php is working well but mysql is giving me trouble. when i try to connect using mysql_connect it wont work, i even tried the GUI interface of my web development program to connect but no luck, so it aint my code. i figured it is a permission problem. im running mysql on linu FC4 and designing on windows. so i used GRANT ALL ON <db>.* TO <user>@my windows ip IDENTIFIED BY 'pass';

But sadly it still gave me the same errors(unidentified error when using the GUI and white screen when using the php code). i have now run out of options, tried tutorials but they all tell me to do what i already did. it might be something to do with permissions(still) or odbc. i really dont know. can someone pls help me?...
 
Old 11-11-2005, 01:02 PM   #2
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
check if MySQL is running on tcp mode.
The port should be 3306.
Can you telnet it from windows?
Code:
telnet mysalip 33306
At least you will know if it is a network problem of MySQL config problem.
 
Old 11-11-2005, 01:09 PM   #3
Die Woud
Member
 
Registered: Apr 2005
Distribution: Fedora
Posts: 33

Original Poster
Rep: Reputation: 15
okay i used the commen prompt and typed telnet <mysqlip> 33306 and it gave me an error, what now?
 
Old 11-11-2005, 02:00 PM   #4
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
My bad, the port is actually 3306


UPS!
 
Old 11-11-2005, 02:17 PM   #5
Die Woud
Member
 
Registered: Apr 2005
Distribution: Fedora
Posts: 33

Original Poster
Rep: Reputation: 15
now that works, so whats next, i believe that my apache does not recognise mysql, becuase when i use phpinfo() it sais nothing about mysql and when i use mysql_connect it gives a white screen
 
Old 11-12-2005, 11:10 AM   #6
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
You need to recompile the php with mysql comptibility.
But is really odd for quite some time now all distros packed a php with mysql and postgres.


Can you connect with a non web based app?
Like MySQLCC or something like it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trouble connecting from mysql 4.1 to 5.0 haeppy Linux - Newbie 1 09-27-2005 04:03 PM
trouble installing mysql jacquedp Linux - Software 2 08-16-2005 12:39 PM
ULOGD + Mysql trouble kaN5300 Linux - Networking 4 12-09-2004 12:12 AM
Trouble Logging in to mysql jevnin Linux - General 6 05-31-2004 12:23 AM
MySQL trouble gruger Linux - Networking 3 07-14-2003 12:47 PM

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

All times are GMT -5. The time now is 03:52 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