Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Cannot use mysql in linux fedora14. Do we have to install it or the bydefault coming is fine.

Cannot use mysql in linux fedora14. Do we have to install it or the bydefault coming is fine.

Scheduled Pinned Locked Moved Database
helpdatabasemysqloraclesysadmin
2 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cmaheshwari16
    wrote on last edited by
    #1

    Hi I have not installed mysql on my own, its the default one that is coming with fedora14 at /usr/local/mysql I am giving you some screenshots, please check if you can find out something. ********************************************************************************************************************************************************* The first issue is while I login using command mysql -u root -p it asks for password I enter, root123 then gives the error ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) let me give you the full flow: I am using fedora 14 _________________________________________________________________________________________________________ in root I fire the below commands: [starting the mysql] [root@chandan init.d]# /etc/init.d/mysqld start Starting mysqld: [ OK ] now from my local account I try to login to sql, [chadan@chandan ~]$ mysql -u root -p Enter password: [i give password as root123 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) But when I login using command [chadan@chandan ~]$ mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.1.51 Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> [here I am able to login to server but when I try to create database then it gives error] mysql> create database dummy; ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'dummy' mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | test | +--------------------+ ********************************************************************************************************************************** NOW THE SECOND ISSUE WHEN I START THE SERVER IN DIFFERENT WAY. [root@chandan init.d]# mysqld_safe --skip-grant-tables & [1] 29006 [root@chandan init.d]# 110219 18:33:25 mysqld_safe Logging to '/var/log/mysqld.log'. 110219 18:33:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql Now from my account I try to logi

    S 1 Reply Last reply
    0
    • C cmaheshwari16

      Hi I have not installed mysql on my own, its the default one that is coming with fedora14 at /usr/local/mysql I am giving you some screenshots, please check if you can find out something. ********************************************************************************************************************************************************* The first issue is while I login using command mysql -u root -p it asks for password I enter, root123 then gives the error ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) let me give you the full flow: I am using fedora 14 _________________________________________________________________________________________________________ in root I fire the below commands: [starting the mysql] [root@chandan init.d]# /etc/init.d/mysqld start Starting mysqld: [ OK ] now from my local account I try to login to sql, [chadan@chandan ~]$ mysql -u root -p Enter password: [i give password as root123 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) But when I login using command [chadan@chandan ~]$ mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.1.51 Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> [here I am able to login to server but when I try to create database then it gives error] mysql> create database dummy; ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'dummy' mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | test | +--------------------+ ********************************************************************************************************************************** NOW THE SECOND ISSUE WHEN I START THE SERVER IN DIFFERENT WAY. [root@chandan init.d]# mysqld_safe --skip-grant-tables & [1] 29006 [root@chandan init.d]# 110219 18:33:25 mysqld_safe Logging to '/var/log/mysqld.log'. 110219 18:33:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql Now from my account I try to logi

      S Offline
      S Offline
      ScottM1
      wrote on last edited by
      #2

      Check this[^], looks like it could be that the root password could be incorrect. The MySQL root password could be different to your OS root password. It could also be that there is a port conflict which is why it works when you start it in a different way.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups