Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Gary Calhoun
Gary Calhoun
10,317 Points

Error importing a database

I have a wordpress site I am trying to move and when I go to import the database I get this error.

SQL query:

--

-- Database: myptink_com

CREATE DATABASE myptink_com DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

MySQL said: Documentation

1044 - Access denied for user 'webpages'@'localhost' to database 'myptink_com'

2 Answers

Ludvík Matějíček
Ludvík Matějíček
12,557 Points

Hello Gary, you need to login as a user with permissions. Default 'root' or create new user with all privileges.

code for login as root

 mysql -u root -p