• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MySQL

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, I'm new to java and MySql, I just downloaded MySql and trying to add a new scheme to the DB.

I logged in as localhost because I don't know what else to log in as. I haven't set up any admin username or password. I just unzipped the MySql into a folder.

I ran mysqld.exe --console
Then MySQLQueryBrowser.exe to create the scheme.
But I get "access denied for user "localhost" [MySQL error Number 1044] when I try to create a DB.

What am I doing wrong?
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch

You can't get MySQL to work at all unless you have a user name and password. Assuming you have got it installed, you need to do some setting up after installation, you have to set up user accounts with privileges if you need them.
Note there is a tutorial as chapter 3 of that manual, and there are different manuals for the different versions, eg 5.0, 5.1.
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mysql comes with default account for root
try

mysql -uroot

 
Campbell Ritchie
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are getting desperate if you log on as root; better to set up a user name, if you can.
 
s daniel
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the help, I'll try it out
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want a GUI for managing your DB, MySQL Front is a pretty good option. It costs $35, but if you're going to be doing a lot of DB work it's well worth the price.
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ryan Denney:
If you want a GUI for managing your DB, MySQL Front is a pretty good option. It costs $35, but if you're going to be doing a lot of DB work it's well worth the price.




I think it comes free of cost ..

Get it here.
You need to login , for downloading it ..
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MySQL Front is a different product than MySQL Workbench.
reply
    Bookmark Topic Watch Topic
  • New Topic