Jump to content

Recommended Posts

Posted

Hi,

I just joined TCH yesterday and am trying to get my mySQL databases setup. I've created an admin user on my databases with full privileges, but whenever I go to phpMyAdmin, it logs me in as MyTCHUserID@localhost. How can I login to phpMyAdmin with my admin user account so that I can do things like adding tables via my stored procedures?

 

Thanks!

 

-- Chris

Posted

Welcome to the forums Chris ;)

 

I guess I'm not understanding your problem. If you access phpAdmin through your cPanel you should be able to do anything to your databases that an admin user would be able to do.

Posted (edited)
Welcome to the forums Chris ;)

 

I guess I'm not understanding your problem. If you access phpAdmin through your cPanel you should be able to do anything to your databases that an admin user would be able to do.

 

Thanks! Glad the forums are here!

 

My specific error happens when I try to run a stored procedure that drops and recreates a database. The stored procedure goes like this:

 

CREATE PROCEDURE resetHoldingsdb ()

BEGIN

DROP DATABASE IF EXISTS <myTCHUserID>_holdingsDB;

CREATE DATABASE <myTCHUserID>_holdingsDB;

 

...

 

The error I get is the following:

 

#1044 - Access denied for user '<myTCHUserID>'@'localhost' to database '<myTCHUserID>_holdingsDB'

 

(Oh, and the stored procedure is residing on a different database than the one I'm trying to drop and recreate.)

Edited by c-square

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...