PDA

View Full Version : Can't connect to mysql database


jenvenfrey
05-15-2009, 12:11 PM
Hi,
I'm a newbie for sure. I set up a mysql database called mymil_calendar, and added mymil_admin as a user. THere are no tables associated with the db is that ok? Or do I have to creat one? Or is that automatic once I connect to the db through the e-php-c setup.

Here are the basics of the error report I get when I try to connect to the database. A scnshot is attached..
----
Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/mymil/public_html/calendar/setup/integrity.php on line 36
Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /home/mymil/public_html/calendar/setup/integrity.php on line 36
There was an error connecting to the mySQL database.
The error was reported as:
Access denied for user 'mymil_admin'@'localhost' (using password: YES)

---

Any help or a place to start would be great! thank you.

It's a trial version I want to see in action before purchase.
Jen

ve9gra
05-15-2009, 12:58 PM
I suggest you contact your host. It is possible that the database server is not local.

jenvenfrey
05-15-2009, 01:25 PM
Ok, I got the database working. step by step I'll get it up! Next issue..

I get this error message when I try to view my new .php page.

I do not know php at all..

Parse error: syntax error, unexpected T_VARIABLE in /home/mymil/public_html/calendartest.php on line 10

this is my page.
http://www.mymilwaukeedog.com/calendartest.php

I just want to view the calendar than working on the settings. I'm trying to view the blog mode.

thanks again,
Jen

I got it.. php has to be formatted exactly! copy/paste didn't work so well. Now on changing the theme.

ve9gra
05-15-2009, 02:56 PM
For changing the theme, have a look at the CSS maps (http://www.epctutorials.com/tag/styling/) that I created. It should help you figure out what does what.

Brian
05-15-2009, 10:49 PM
A T_VARIABLE variable usually means you're missing a space between <?php and your commands. If you post that line on your file, we can help.

ve9gra
05-16-2009, 12:32 AM
The post was edited to say that they got it working. All's good.