Click here to Skip to main content
15,902,447 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have mysql user password as
*K!lGZ_8b$

$4hkGSyA&'

$4hkGSyA&'

$4hkGSyA&'";


normal ones are connecting to mysql using these password but these special characters are not

What I have tried:

i have mysql user password as 
<pre>*K!lGZ_8b$

$4hkGSyA&'

$4hkGSyA&'

$4hkGSyA&'";
Posted
Updated 15-Dec-21 23:34pm
Comments
Richard MacCutchan 16-Dec-21 5:25am    
Only use the correct password.

1 solution

Quotes are part of strings as far as MySQL - and all other SQL systems - is concerned. So you can't build a connection string that contains a quote unless you use the sppropriare escape system to insert it as an "embedded character" instead.

Unfortunately, that will depend on the connection type and teh language you are using to connect, and we have no idea about either.

So start here: mysql connection string password special characters - Google Search[^] and see which one fits your environment and usage.
 
Share this answer
 
Comments
Abhijith moody 16-Dec-21 6:30am    
am using from php to connect to mysql
OriginalGriff 16-Dec-21 7:30am    
And your secret code has a secret problem that I am clearly not authorised to see ...

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