Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to CREATE DATABASE fails. 1

Status
Not open for further replies.

imstillatwork

IS-IT--Management
Sep 26, 2001
1,605
US
I'm trying to create a new MYSQL database using the following query..

Code:
<cfquery datasource="#mydshere..#">
	CREATE DATABASE IF NOT EXISTS my_test
</cfquery>

If failes saying I don't have access to that DB. The user name being used has CREATE privelages, I've checked that a million times.

How can I create a new DB from a query, and get access to it? ?

I have full control over the mysql server, cfmx7 and web servers.

Kevin

Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!
 
long shot I know but what about the permissions within cf admin -> data sources -> your datasources -> advanced??
 
yeah, kinda it was the user I was using.
had to change the grant privs.

It's going to be a sort of technical project. I'm going to create databases, create mysql users, give that new user permissions to the new database, and a make a cf dsn all on the go so our outside developers can do some of the setup on their own, without getting into anything they shouldn't.

We provide a set of growing admin tools that we re-use to speed up development time for our sites, so the developers will be able to take advantage of these also, so another part of this is to be copying blank tables to the new databases.

It'll take some time, but I'll get it going.

My other hurdles will be IIS and DNS, but i have not put to much hope in doing any of that on the go.



Kevin

Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!
 
My other hurdles will be IIS and DNS, but i have not put to much hope in doing any of that on the go.

DNS is simple if you are using MSDNS, just look into DNSCMD.exe (Should be on the Windows CD in the support\tools dir)

Hope this helps

Wullie

YetiHost - Quality Coldfusion 7/Windows Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top