473,545 Members | 4,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GRANT, Privilege etc

I have a new DB provided by my ISP don't know details of installation,
setup etc.

I can log in as anybody except root.

mysql -h localhost -u mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 71 to server version: 4.0.16-log

mysql -h localhost -u xxxxx
Welcome to the MySQL monitor. Commands end with ; or \g.

mysql -h localhost -u skrtfl
Welcome to the MySQL monitor. Commands end with ; or \g.

....
....

mysql -h localhost -u root
ERROR 1045: Access denied for user: 'root@localhost ' (Using password: NO)

using the sys root password ===>
mysql -h localhost -u root -p********
ERROR 1045: Access denied for user: 'root@localhost ' (Using password: YES)

using another, actually only a slight variant of the former "the
terminal question mark" as part of the password ===>
mysql -h localhost -u root -p********?
mysql: No match.

Why is there a difference re: ERROR 1045: and mysql: No match ?

Not knowing what my ISP has done, what is the best approach to reset
password (GRANT etc)

Thanks

-- Adam --
Jul 20 '05 #1
1 3272
I took this approach [ I am running FreeBSD 4.9 O/S ]

[i] Brought the system down with a kill -9 pid

[ii] Restart w/o GRANT TABLES
/usr/local/bin/mysqld_safe --skip-grant-tables &

[iii] ps waux | grep mysql ===>

root 59017 0.0 0.1 648 316 p4 I 4:42PM 0:00.01 /bin/sh
/usr/local/bin/mysqld_safe --skip-grant-tables

mysql 59048 0.0 3.8 59784 19576 p4 S 4:42PM 0:01.66
/usr/local/libexec/mysqld --basedir=/usr/local --datadir=/var/db/m

[iv] mysqladmin -u root password ******** ===>
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost ' (Using password: NO)'

So, the server seems to be running w/o the GRANT TABLES, but yet I
can't change the root password and for that matter can't assign privileges

Now! What else can I do ????

Thanks

-- Adam --
Adam Smith wrote:
I have a new DB provided by my ISP don't know details of installation,
setup etc.

I can log in as anybody except root.

mysql -h localhost -u mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 71 to server version: 4.0.16-log

mysql -h localhost -u xxxxx
Welcome to the MySQL monitor. Commands end with ; or \g.

mysql -h localhost -u skrtfl
Welcome to the MySQL monitor. Commands end with ; or \g.

...
...

mysql -h localhost -u root
ERROR 1045: Access denied for user: 'root@localhost ' (Using password: NO)

using the sys root password ===>
mysql -h localhost -u root -p********
ERROR 1045: Access denied for user: 'root@localhost ' (Using password: YES)

using another, actually only a slight variant of the former "the
terminal question mark" as part of the password ===>
mysql -h localhost -u root -p********?
mysql: No match.

Why is there a difference re: ERROR 1045: and mysql: No match ?

Not knowing what my ISP has done, what is the best approach to reset
password (GRANT etc)

Thanks

-- Adam --

Jul 20 '05 #2

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

Similar topics

14
1975
by: Martin v. Löwis | last post by:
The Python Software Foundation is seeking grant proposals for projects related to the further development of Python, Python-related technology, and educational resources. The PSF plans to issue calls for proposals regularly. Proposals should be for specific projects with a clear objective, rather than support for ongoing activities....
1
3209
by: KVN Chary | last post by:
create TYPE temp1 AS OBJECT ( col1 VARCHAR2(20), col2 VARCHAR2(20) ) / create TYPE temp1_array AS VARRAY (6) OF temp1 /
4
98966
by: Amardeep Verma | last post by:
Hi, I have a quick question. Which role/privileges are required before a user can give the statement "GRANT ALL PRIVILEGES"? Thanking you in Advance Have a nice day
1
15368
by: zeus | last post by:
Hi there, I am using Postgresql 7.3 and I want to grant select rights to a user on all tables in a schema, including those that may be created in the future but whose names are not yet known. I want to do something like: GRANT SELECT ON <schema>.* TO <user>; but select isn't a valid privilege on a schema and I don't see how wildcards are...
3
11379
by: kangaroo | last post by:
Hi guys, table "A" was created by user "USER1". Is there a way for USER1 to grant access to DROP that table to user "B"? The answer I heard so far was "only if user B has administrative priviligies". Any evidence to the contrary? Thanks Bogdan
1
3665
by: everymn | last post by:
Hi, Supposedly the Alter Routine privilege can be granted at the level of a single routine but I haven't been able to get that to work. I've tried it a number of different ways like: GRANT ALTER ROUTINE ON test.'routine-name' TO 'alt-routine'@'localhost' IDENTIFIED BY 'alt-routine'; and
4
5553
by: Jatinder | last post by:
Hi, I am trying to grant connect privilege to a user present on my O.S. (Windows) using following statement. GRANT CONNECT ON DATABASE TO user "user1" now when I execute this statemnt from db2 clp(ofcourse prefixing db2) it works fine, but when I put it inside an sql file and then when I try to run the file using db2 -tvf, it gives me...
1
5930
by: shsandeep | last post by:
I 'recreated' a stored procedure. Earlier, i had given privileges to a particular group but now (after rebuilding) when I try to grant execute privilege for the SP to the same user group, it gives me the below message. Any clues on this?? SQL0458N In a reference to routine "SITSCHM.SP_ERND_PREM" by signature, a matching routine could...
0
3848
by: Luis Correia | last post by:
hello.. with oracle 7.3.4.4 and with remote_login_passwordfile=NONE, can a user be granted the SYSDBA system privilege? Or does granting the SYSDBA system privilege imply that a password file must be used.
0
7396
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7751
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1874
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
700
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.