Connect to ONLINE MySQL database using DSN ODBC

十年热恋 提交于 2019-12-24 01:05:45

问题


I am connecting an online MySQL database.

I have downloaded MySQL ODBC Connector 5.1. Now am trying to setup the DSN. But am getting the error:

Connection Failed : [HY000] [MySQL] [ODBC 5.1 Driver]Access Denied for user 'user123'@'myweb.com' 

I have hosted this site with some hosting provider. Do i need some details from the provider????

I am doing this > Control Panel--->Administrative Tools--->Data Sources (ODBC)--->Then i chose MySQL ODBC Driver 5.1-----> then i enter the following in the DIALOG which pops-up:

TCP/IP Server - www.myweb.com Port =3306

userid=user123 and password , I enter those userid=user123 & password which i enter when i open www.myweb.com/cpanel.


回答1:


Cpanel by default does not allow remote connections. Please go to database area in your cPanel and add there your public IP address so that it can accept connection requests from your IP address.



来源:https://stackoverflow.com/questions/6218195/connect-to-online-mysql-database-using-dsn-odbc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!