473,386 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Access to MySql

I am a MySQL apprentice, I downloaded and installed MySQL successfully
on Windows XP, and I can see 2 default database:mysql and test.

The problem is: when I tried to create a new database by
CREATE DATABASE publish;

It showed the message:
ERROR 1044: Access denied for user:'@localhost' to database 'publish'

It looks that I was treated as localhost user, and doesn't have
administrator's previlege (even I logged in as administrator account),
so I can do nothing about mysql, can anybody tell me how to get full
previlege? or how to create database?

Thank you, very much!
Jul 20 '05 #1
7 1433
it looks like you've managed to login as a blank user. The @localhost
is where you're from. You need to see root@localhost.

Hope wrote:
I am a MySQL apprentice, I downloaded and installed MySQL successfully
on Windows XP, and I can see 2 default database:mysql and test.

The problem is: when I tried to create a new database by
CREATE DATABASE publish;

It showed the message:
ERROR 1044: Access denied for user:'@localhost' to database 'publish'

It looks that I was treated as localhost user, and doesn't have
administrator's previlege (even I logged in as administrator account),
so I can do nothing about mysql, can anybody tell me how to get full
previlege? or how to create database?

Thank you, very much!

Jul 20 '05 #2
Hi David,
Thank you for your reply, can you tell me how to see root@localhost,
and what's the next step after that?
Thank you, David
Hope
David L <dl@nospam.com> wrote in message news:<Dx******************@news-server.bigpond.net.au>...
it looks like you've managed to login as a blank user. The @localhost
is where you're from. You need to see root@localhost.

Hope wrote:
I am a MySQL apprentice, I downloaded and installed MySQL successfully
on Windows XP, and I can see 2 default database:mysql and test.

The problem is: when I tried to create a new database by
CREATE DATABASE publish;

It showed the message:
ERROR 1044: Access denied for user:'@localhost' to database 'publish'

It looks that I was treated as localhost user, and doesn't have
administrator's previlege (even I logged in as administrator account),
so I can do nothing about mysql, can anybody tell me how to get full
previlege? or how to create database?

Thank you, very much!

Jul 20 '05 #3
Hope wrote:
It showed the message:
ERROR 1044: Access denied for user:'@localhost' to database 'publish'


Start MySQL console like this:

c:\mysql\bin\mysql -u root

Or if you have set password for root user, use:

c:\mysql\bin\mysql -u root -p

After that, you should be able to create databases.

Followups set only to: mailing.database.mysql
Jul 20 '05 #4
On Tue, 15 Jun 2004 05:52:58 +0000, Aggro wrote:
Hope wrote:
It showed the message:
ERROR 1044: Access denied for user:'@localhost' to database 'publish'


Start MySQL console like this:

c:\mysql\bin\mysql -u root

Or if you have set password for root user, use:

c:\mysql\bin\mysql -u root -p

After that, you should be able to create databases.

Followups set only to: mailing.database.mysql


I have a similar problem. I have root access on the database server
machine and I can see (and modify) the files in /var/lib/mysql/mysql.
However, I don't know the root password for the database. Is there a way
to set the root mysql password from the linux root account?
Many thanks,
Jeff

Jul 20 '05 #5
Jeff Silverman wrote:
I have a similar problem. I have root access on the database server
machine and I can see (and modify) the files in /var/lib/mysql/mysql.
However, I don't know the root password for the database. Is there a way
to set the root mysql password from the linux root account?


Yes:
http://dev.mysql.com/doc/mysql/en/Re...rmissions.html
Jul 20 '05 #6
hi, i trust Aggro's response would have covered it. (sorry i don't read
post very often).

Hope wrote:
Hi David,
Thank you for your reply, can you tell me how to see root@localhost,
and what's the next step after that?
Thank you, David
Hope
David L <dl@nospam.com> wrote in message news:<Dx******************@news-server.bigpond.net.au>...
it looks like you've managed to login as a blank user. The @localhost
is where you're from. You need to see root@localhost.

Hope wrote:
I am a MySQL apprentice, I downloaded and installed MySQL successfully
on Windows XP, and I can see 2 default database:mysql and test.

The problem is: when I tried to create a new database by
CREATE DATABASE publish;

It showed the message:
ERROR 1044: Access denied for user:'@localhost' to database 'publish'

It looks that I was treated as localhost user, and doesn't have
administrator's previlege (even I logged in as administrator account),
so I can do nothing about mysql, can anybody tell me how to get full
previlege? or how to create database?

Thank you, very much!

Jul 20 '05 #7
Thank you, guys, I can work well with mySQL now.
Best regards,

Hope

Aggro <sp**********@yahoo.com> wrote in message news:<_8*************@read3.inet.fi>...
Hope wrote:
It showed the message:
ERROR 1044: Access denied for user:'@localhost' to database 'publish'


Start MySQL console like this:

c:\mysql\bin\mysql -u root

Or if you have set password for root user, use:

c:\mysql\bin\mysql -u root -p

After that, you should be able to create databases.

Followups set only to: mailing.database.mysql

Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: John | last post by:
Hello. I am currently working through a book on Dreamweaver and using PHP. I am having a little trouble with setting up the database though. I have php 4.2.3 and MySQL 4.0.20a. I am running...
11
by: Mike MacSween | last post by:
My client has an MS Access database application on her local machine. I have full access to that in terms of changing the design. I've got a simple PHP/MySql application on shared hosting, so no...
0
by: Ryan Schefke | last post by:
------=_NextPart_000_0077_01C34C8B.2B90C960 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ..I just sent this out to the win32 distribution list but no one has...
0
by: Maciej Wiznerowicz | last post by:
Dear Sirs, I can not start MySQL server. More specifically, MySQL was running fine all the time since installation. It stopped working after I used FmPro Migrator to convert some File Maker...
0
by: Morten Gulbrandsen | last post by:
Hi programmers, Good morning ;-) I think something is wrong, Running windows I believe first I have to set some password, Which creates some user, Then I can grant the required privileges, for...
17
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I...
2
by: Beda Christoph Hammerschmidt | last post by:
MySQL, Access, ODBC, Replication Hello, i have a central mysql database that is accesed by multiple clients running MS Access with ODBC. This works fine if Access has a permanent connection...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
5
by: B1ackwater | last post by:
We've fooled around with Access a bit, but only using the single-user store-bought version. It seems to be a good database - versatile and infinitely programmable - and can apparently be used as a...
4
by: Vanessa | last post by:
Hi there I am an Access developer, and I have written applications for a 30 telephone call center, using the standard multiuser jet engine, it all works fine, but I want to move our systems onto...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.