sasori Posted August 16, 2008 Share Posted August 16, 2008 let's say im running my mysql console using my wamp service how am i gonna connect to my live free hosting account's mysql server ? i tried this syntax, -h test.test.com -u myuser -p mypassword; but it doesn't work ??? Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/ Share on other sites More sharing options...
marcus Posted August 16, 2008 Share Posted August 16, 2008 Does your mysql server allow access from your IP? Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617873 Share on other sites More sharing options...
sasori Posted August 16, 2008 Author Share Posted August 16, 2008 Does your mysql server allow access from your IP? how will i know sir?, Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617875 Share on other sites More sharing options...
marcus Posted August 16, 2008 Share Posted August 16, 2008 If you're using a cPanel http://i33.tinypic.com/264o02p.jpg Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617879 Share on other sites More sharing options...
sasori Posted August 16, 2008 Author Share Posted August 16, 2008 If you're using a cPanel http://i33.tinypic.com/264o02p.jpg based on the screenshot, does this mean i should place my own IP in that? Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617881 Share on other sites More sharing options...
marcus Posted August 16, 2008 Share Posted August 16, 2008 Try it. If that doesn't work try connecting to it by an IP, instead of a server url. Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617882 Share on other sites More sharing options...
sasori Posted August 16, 2008 Author Share Posted August 16, 2008 i added my ip ..but still this thing -h test.test.org -u myuser -p mypassword; doesn't work ??? Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617887 Share on other sites More sharing options...
marcus Posted August 16, 2008 Share Posted August 16, 2008 Instead of test.est.org try the ip to that. Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617890 Share on other sites More sharing options...
sasori Posted August 16, 2008 Author Share Posted August 16, 2008 Instead of test.est.org try the ip to that. it doesn't work either -h 192.my.ip.something -u mypass -p mypassword Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617893 Share on other sites More sharing options...
marcus Posted August 16, 2008 Share Posted August 16, 2008 Have you tried just using a PHP connection? Instead of triyng to open it in your wamp service. Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617894 Share on other sites More sharing options...
sasori Posted August 16, 2008 Author Share Posted August 16, 2008 Have you tried just using a PHP connection? Instead of triyng to open it in your wamp service. im just started reading about mysql a few hours ago sir.. i want to learn how to connect manually using that wamp console for mysql. i will plunge in connecting to it using php scripts ??? Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617897 Share on other sites More sharing options...
sasori Posted August 16, 2008 Author Share Posted August 16, 2008 i have it working now..what i did was, i went to the directory of msyql of wamp c:\wamp\bin\mysql\mysql5.0.45\ then i typed mysql.exe -h my.domain.com -umyusername -pmypassword note: yeah , i removed the spaces between the -u and my username and also the space between -p and mypassword and it realy worked. lesson learned: never use wamp mysql console when trying to connect to a live webhosting mysql account and don't forget to add your own ip in the cpanel Link to comment https://forums.phpfreaks.com/topic/119942-solved-mysql-help/#findComment-617904 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.