hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Access denied - Creating MySQL
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Access denied - Creating MySQL

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-31-2002, 10:01 AM
Bazuuka Bazuuka is offline
Junior Guru Wannabe
 
Join Date: Jan 2002
Posts: 60
Exclamation

Access denied - Creating MySQL


I am want to create a mySQL database from a PHP script using mysql_create_db. when I test the scripts on my local computer it works fine and creates the database, but when I upload the script to my webhost the script cant create the database it gets a "Access Denied to..." error.

I have unlimeted mysql in my hosting package, I can create them manualy from the CPANEL but cant create them with my php script.

What can I do to be able to create mySQL databases from a PHP Script.

Thanks

Reply With Quote


Sponsored Links
  #2  
Old 08-31-2002, 10:43 AM
sitekeeper sitekeeper is offline
Quick, poke it with a stick!
 
Join Date: Jul 2001
Location: Troy, Missouri USA
Posts: 1,299
Are you using your cPanel user name and password in the script?

__________________
Sitekeeper
32 Mbps broadband

Reply With Quote
  #3  
Old 08-31-2002, 11:05 AM
Bazuuka Bazuuka is offline
Junior Guru Wannabe
 
Join Date: Jan 2002
Posts: 60
Quote:
Originally posted by sitekeeper
Are you using your cPanel user name and password in the script?
I tried that but it didnt work, I got a:

Access denied for user: xxxx@localhost' to database 'xxxxx'

error.


Reply With Quote
Sponsored Links
  #4  
Old 08-31-2002, 12:16 PM
kunal kunal is offline
Web Hosting Master
 
Join Date: Aug 2000
Posts: 2,750
Hi,

To create a dbase, you need to have root access to mysql.. which you wouldnt have in a virtual hosting environment. You need to ask your host to create the dbase for you, or do it via cpanel.

kinda sucks, i know...
Kunal

__________________
The Php Support Desk
http://www.phpsupportdesk.com
Custom programming - kunal @ e-phoria.com
http://www.pingzine.com - Ping!Zine. the FREE, FRESH and EXCITING Web Hosting Magazine...

Reply With Quote
  #5  
Old 08-31-2002, 12:35 PM
Bazuuka Bazuuka is offline
Junior Guru Wannabe
 
Join Date: Jan 2002
Posts: 60
Quote:
Originally posted by kunal
Hi,

To create a dbase, you need to have root access to mysql.. which you wouldnt have in a virtual hosting environment. You need to ask your host to create the dbase for you, or do it via cpanel.

kinda sucks, i know...
Kunal
Thanks kunal.

I will have to create them manually

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Facebook Says Minor Outage Not Caused by Anonymous Hackers Web Hosting News 2012-06-01 15:25:42
Web Host ServInt Encourages Community Work with Customer Charity Award Web Hosting News 2012-03-08 11:12:54
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Web Host A2 Hosting Launches QuickInstaller Tool for VPS Plans Web Hosting News 2011-08-19 20:00:53
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?