Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Installation / Upgrade Questions

Installation / Upgrade Questions Questions or issues concerning the installation of the Easy PHP Calendar script.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Forbiden character in MySQL password?
Old 02-20-2008, 04:06 PM   #1
malta
Calendar User
 
malta is offline
Join Date: Feb 2008
Posts: 2
Exclamation Forbiden character in MySQL password?

Hi.

After using Easy PHP Calendar with a flat db file for a while I decided to switch to a MySQL database. The problem is that I was given a password to the database by our sysadmin that contains the characters $ and @ ( $xxxx@x ) , and when I enter it in EzPHPCal's setup manager I get the access denied error [Access denied for user 'webadm'@'localhost' (using password: YES)]. I should also mention that once the page is reloaded only the @ and the following character reappear in the setup manager's mysql password field; hence I concluded that the full password is not being passed to the database. I've already tried to enter the password manually in config.inc.php and to escape the aforementioned characters with backslashes...

Considering that this password is already used in other corporate applications I really don't want to request the sysadmin to change it, so I was wondering if there is a workaround for this issue.

Thanks.
 

Old 02-20-2008, 07:25 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

Try manually editing the config.inc.php file and add your password there.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-20-2008, 07:57 PM   #3
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Quote:
Originally Posted by malta View Post
I've already tried to enter the password manually in config.inc.php and to escape the aforementioned characters with backslashes...
I really don't know how to deal with this one...
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-20-2008, 07:59 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

I didn't catch that the first time through.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-21-2008, 08:04 AM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

At first I thought it was because of the @, but after I re-read the post, I now believe that the problem is with the first character being $...

Is it possible that the script somehow thinks that $xxxx@x is a variable? Or rather $xxxx be a variable that is to be appended to @x? Since $xxxx doesn't exist, only "@x" show up in the Setup Manager.

This is going back to PHP string handling... So if I'm correct, you should be able to enter \$xxxx@x in the Setup Manager and make it work. Do not escape the @ as it is not a special character in a PHP string.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-21-2008, 09:50 AM   #6
malta
Calendar User
 
malta is offline
Join Date: Feb 2008
Posts: 2
Smile

Thanks a lot for the quick replies. I got a connection to the database.

I had already tried to escape the $, but I still couldn't connect to the database even though the password was properly saved in the config file. The solution was to escape an extra backslash to be processed when EzPHPCal tries to connect to the database, that is, after the config file is saved. So I entered "\\\$xxxx@x" instead of only "$xxxx@x" in the password field.

It looks kinda funny, but it's enough to get it going...
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up MySQL harringg General 3 10-09-2007 09:31 PM
error connecting to the mySQL database tracydem Installation / Upgrade Questions 4 10-05-2007 12:01 AM
error connecting to the mySQL database. nassoit Installation / Upgrade Questions 1 04-11-2007 02:33 PM
same mysql dbase error over and over srp Installation / Upgrade Questions 4 07-25-2006 10:23 PM
mySQL hurdle (newbie) stinkapotomus General Support 4 02-25-2004 02:26 PM



All times are GMT -4. The time now is 09:43 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |