Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-11-2005, 11:43 AM
|
#1
|
Member
Registered: Apr 2005
Distribution: Fedora
Posts: 33
Rep:
|
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?...
|
|
|
11-11-2005, 01:02 PM
|
#2
|
Member
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284
Rep:
|
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.
|
|
|
11-11-2005, 01:09 PM
|
#3
|
Member
Registered: Apr 2005
Distribution: Fedora
Posts: 33
Original Poster
Rep:
|
okay i used the commen prompt and typed telnet <mysqlip> 33306 and it gave me an error, what now?
|
|
|
11-11-2005, 02:00 PM
|
#4
|
Member
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284
Rep:
|
My bad, the port is actually 3306
UPS! 
|
|
|
11-11-2005, 02:17 PM
|
#5
|
Member
Registered: Apr 2005
Distribution: Fedora
Posts: 33
Original Poster
Rep:
|
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
|
|
|
11-12-2005, 11:10 AM
|
#6
|
Member
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 03:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|