File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL

 
s daniel
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • 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?
 
Campbell Ritchie
Sheriff
Pie
Posts: 47300
52
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Vijitha Kumara
Bartender
Posts: 3909
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mysql comes with default account for root
try
mysql -uroot
 
Campbell Ritchie
Sheriff
Pie
Posts: 47300
52
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help, I'll try it out
 
Ryan Denney
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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 ..
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MySQL Front is a different product than MySQL Workbench.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic