Jump to content

Need MySQL Connection String!


Ashish Panwar

Recommended Posts

Hii,

 

im a user of ASP.NET(C#), well i know heliohost didnt provide MSSQL for database.

so i converted my codes to MySQL.

i created MySQL databse in CPANEL & use PhpMyAdmin for create my tables. all done perfectly.

now, i need connection string. i dont know how to find this strings. please help me

i will use connection String in ASP.NET web.config file.

for my localdatase in computer i used this>>

 

<add name="myConnString" connectionString="Server=127.0.0.1;Port=3306;Database=ella;Uid=root;Pwd="password" providerName="MySql.Data.MySqlClient"/>

 

now what is the Heliohost connection string.

i need SERVER IP, PORT, ...& what uid & pwd use in this, from MySQL or my main account id/pass.

my website name is ellalanguages.co.cc & username "jessash7"

please tell me what to do

 

thank you.

Link to comment
Share on other sites

Server - localhost

Port - 3306 (usually not needed in PHP applications, but I'm not sure about ASP.NET)

Database* - cpusername_dbname

UID** - cpusername_mysqlusername

Pwd** - mysqlpassword

 

*MySQL Database names are in the format of cpanelusername_database name. For example, if your cpanel username was "heliohost" and your database was called "db123," you would have to put "heliohost_db123" into your app.

 

**To create a MySQL username and password: In your cPanel, go to MySQL Databases (the same place you created a database). Under MySQL Users, enter a username and password (twice) to create a MySQL User. This does not have to be the same as your cPanel username and password. Under Add User to Database, select the new username you just created and the database name (joomla1), then click Add. On the next page, click the box next to All Privileges and then press Make Changes.

 

Please note that your MySQL username also requires your cpanel username and and underscore (like database names), but your password is just the password you created.

Link to comment
Share on other sites

Server - localhost

Port - 3306 (usually not needed in PHP applications, but I'm not sure about ASP.NET)

Database* - cpusername_dbname

UID** - cpusername_mysqlusername

Pwd** - mysqlpassword

 

*MySQL Database names are in the format of cpanelusername_database name. For example, if your cpanel username was "heliohost" and your database was called "db123," you would have to put "heliohost_db123" into your app.

 

**To create a MySQL username and password: In your cPanel, go to MySQL Databases (the same place you created a database). Under MySQL Users, enter a username and password (twice) to create a MySQL User. This does not have to be the same as your cPanel username and password. Under Add User to Database, select the new username you just created and the database name (joomla1), then click Add. On the next page, click the box next to All Privileges and then press Make Changes.

 

Please note that your MySQL username also requires your cpanel username and and underscore (like database names), but your password is just the password you created.

 

Thank You, I will try, if it worked or not...i will inform you ;)

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...