Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2005-08-12, 08:23 AM
Junior Member
 
Join Date: Aug 2005
Posts: 3
Ch3vr0n
Default

Im running apache 2.0.54 and php 5.0.4, mysql 4.1.13a and phpMyAdmin All is installed well and when i open the page with <?php phpinfo(); ?> the basic info is displayed.

The problem persists in 3 variations.

v1) I have a copyright made up, and the table has been created locally with the right values. But instead of showing the info i get "Access denied for user 'ODBC'@'localhost' (using password: NO)" while in the php code the password and login have been set to the local admin account data. I dont know how to change that username "root". So the copyright dont work locally (it works fine online but im rewriting my website).

v2) I have a page with a menu on top that generates a table with info via php into an iframe, same issue it works fine online but not offline. All it does when clicking on one of the link is showing the same page including menu links in that iframe and not rendering the code.

on almost all pages with mysql_connect i get that ODBC error. Can somebody help me ?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2005-08-12, 08:51 AM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

the first error is just a permissions issue. You need to add the user to MySQL and set it up to access with the correct permissions and database. If you do an insert instead of a grant, make sure to bounce MySQL.

I dont really understand the second issue, define "offline" for me.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #3 (permalink)  
Old 2005-08-12, 09:16 AM
Junior Member
 
Join Date: Aug 2005
Posts: 3
Ch3vr0n
Default

i installed apache, mysql, php, ... on this pc. So that defines offline (online = my webserver). (windows)

the main user that was through the setup config wizard was "root" and a password i chose. So how can i and another user ?

Insert ?? Grant ?? bounce mySQL ???
Reply With Quote
  #4 (permalink)  
Old 2005-08-12, 11:45 AM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

Insert & Grant are both types of MySQL statements, bouce means to restart.

I dont know about your "offline" issue, you may need to examine what is different between your servers. Start with URLs to make sure you are using relative ones anywhere you can.

Somewhere you are attmpting to connect to MySQL using the ODBC username, that should change to "root" i assume from your posts.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #5 (permalink)  
Old 2005-08-12, 12:44 PM
Junior Member
 
Join Date: Aug 2005
Posts: 3
Ch3vr0n
Default

my official webserver runs on linux, im want to test my new site on my pc (windows). The server settings are using "localhost" MySQL connections are made with user "root" and the password. Thats why i dont understand what that ODBC does there.

So how can i add an extra mysql or phpmyadmin user, if that is needed to fix ?
Reply With Quote
  #6 (permalink)  
Old 2005-08-12, 06:07 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

It might be some type of default in the php, i dont know where else the ODBC would come from.

You can google for how to add a user to MySQL for your version, it would be a lot easier than trying to figure out my explaination.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:01 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.