Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8480355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:16:21+00:00 2026-06-10T19:16:21+00:00

I have mysql installed on my Mac and when i check the system preferences

  • 0

I have mysql installed on my Mac and when i check the system preferences it shows that it is running.

When, while trying to follow a tutorial, I try to create a database

mysql> create database tinyclone;

I get this error

mysql> create database tinyclone;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'tinyclone'

Before creating the database, the author of the book does

mysql –u <username> -p <password>

However, I don’t know my username, and I’m not 100% sure I know my password either.

I tried to do

sudo create database tinyclone;

and I got a different error message. Not sure what the problem with my syntax was

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sudo create database tinyclone' at line 1

Question, so that I can follow along with the book’s author, anyone know how I can find out my mysql username and password?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:16:23+00:00Added an answer on June 10, 2026 at 7:16 pm

    I get this error

    mysql> create database tinyclone;

    ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘tinyclone’

    You’re not logged in as any user (hence the ”@’localhost’ bit). As others have suggested, try doing mysql -uroot -proot or mysql -uroot.

    However, I don’t know my username, and I’m not 100% sure I know my password either.

    There is (almost) always a ‘root’ user created by default, usually with no password, unless you specified one when initially installing/configuring mysql.

    I tried to do

    sudo create database tinyclone;

    and I got a different error message. Not sure what the problem with my syntax was
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘sudo create database tinyclone’ at line 1

    sudo is not an SQL command. You cannot use it inside mysql. Instead log into sql with the ‘root’ user.

    Also, please note that the mysql root user is not the same as your computer’s root user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have mysql installed on my mac (running OSX Snow Leopard). According to everything
I have installed Mysql 5.1 on Mac OS X 10.7 Lion. For some reason,
I have MySQL running with the ASP Membership Schema I have installed the connector,
I recently installed xampp, followed the installation. MySQL/apache. (I have same website running on
I am running Mac OS X 10.5.8. I have installed Python 2.6 from the
I have installed mysql on a mac 10.7, I am using phpmyadmin to access
I have just activated/installed PHP and mySQL on my Mac and all seemed to
I have MySQL installed (MAMP, Mac OS X) but need to call it by
I just installed mysql on a mac running 10.6. The mysql version is 5.1.56.
I have MAMP already installed in my mac. So the mysql in MAMP is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.