Click here to Skip to main content
15,912,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to select data from mysql server by writing query in localhost server

i want to write server name,user name and password in mysql query itself
Posted
Updated 26-Aug-12 21:10pm
v2

1 solution

I'm not sure what you want to do, especially what you mean: "i want to write server name, user name and password in mysql query". Remember, before you can execute query, you need to connect to the MySQL server.

How to connect to MySQL database?
http://www.connectionstrings.com/mysql[^]
 
Share this answer
 
Comments
madhu.gone 27-Aug-12 4:15am    
exactly i have to write insert query
like
insert into tablename Select * from servertablename
at this time i am in local host
but that servertablename in server,so i want to connect the server
Maciej Los 27-Aug-12 4:29am    
What's the problem? I've showed you a link to the site where you can learn how to connect to MySQL server. Use it!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900