Jump to content

[Answered] Excel Vba Connection Settings To Mysql


csprojec

Recommended Posts

Hi,

 

I tried to connect from Excel VBA to MySQL db, namely: csproject_db.

 

My account is on Stevie.

 

Can someone please kindly help me if the server name: stevie.heliohost.org is correct? the username and password are from cPanel login.

 

However, the database has also been assigned a Privileged User as csprojec_admin and password.

 

 

cn.ConnectionString = "Provider=MSDASQL;" & _
"Driver={MySQL ODBC 5.2 ANSI Driver};" & _
"Server=stevie.heliohost.org;" & _
"Database=csprojec_db;" & _
"User=csprojec;" & _
"Password = --------;" & _
"Port = 3306" & _
"Option = 3"
VBA: The Run time error gave me "can't connect to MySQL server on Stevie.heliohost.org"
Thanks a lot

 

csprojec_admin

 



Sorry. I used the website name "csproject.heliohost.org" and it works.

cn.ConnectionString = "Provider=MSDASQL;" & _
"Driver={MySQL ODBC 5.2 ANSI Driver};" & _
"Server=csproject.heliohost.org;" & _
"Database=csprojec_db;" & _
"User=csprojec;" & _
"Password = --------;" & _
"Port = 3306"

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...