Click here to Skip to main content
15,899,474 members
Home / Discussions / Database
   

Database

 
QuestionAutomatic update table based on time Pin
AhmedMasum20-Feb-11 2:52
AhmedMasum20-Feb-11 2:52 
AnswerRe: Automatic update table based on time Pin
R. Giskard Reventlov20-Feb-11 3:14
R. Giskard Reventlov20-Feb-11 3:14 
GeneralRe: Automatic update table based on time Pin
AhmedMasum22-Feb-11 1:41
AhmedMasum22-Feb-11 1:41 
AnswerRe: Automatic update table based on time Pin
Eddy Vluggen20-Feb-11 5:03
professionalEddy Vluggen20-Feb-11 5:03 
AnswerRe: Automatic update table based on time Pin
PIEBALDconsult21-Feb-11 8:21
mvePIEBALDconsult21-Feb-11 8:21 
GeneralRe: Automatic update table based on time Pin
AhmedMasum22-Feb-11 1:28
AhmedMasum22-Feb-11 1:28 
GeneralRe: Automatic update table based on time Pin
PIEBALDconsult22-Feb-11 10:37
mvePIEBALDconsult22-Feb-11 10:37 
QuestionCannot use mysql in linux fedora14. Do we have to install it or the bydefault coming is fine. Pin
cmaheshwari1619-Feb-11 2:30
cmaheshwari1619-Feb-11 2:30 
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 login

[chadan@chandan ~]$ mysql -u root -p

Enter password: fsklfjfljf
here whatever password I give I am able to login

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
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> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.00 sec)

now when I check mysql database
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed


mysql> show tables;
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| servers |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+
23 rows in set (0.01 sec)

mysql> select host,user,password,Insert_priv,update_priv from user;
+---------------------- +------+---------- +-------------+-------------+
| host | user | password | Insert_priv | update_priv |
+---------------------- +------+---------- +-------------+-------------+
| localhost | root | root123 | Y | Y |
| username.corp.org.in | root | root123 | Y | Y |
| 127.0.0.1 | root | root123 | Y | Y |
| localhost | | | N | N |
| username.corp.org.in | | N | N |
+----------------------+------+----------+-------------+-------------+
5 rows in set (0.00 sec)

[here you can see that the password for root user is root123,
now here if i try to create database i am able to do that

mysql> create database dummy;


mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| dummy |
| mysql |
| test |
+--------------------+
4 rows in set (0.00 sec)

I dont know how to solve this also I tried to create another user but it denied

mysql> CREATE USER 'seen' IDENTIFIED BY 'seen123';
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
AnswerRe: Cannot use mysql in linux fedora14. Do we have to install it or the bydefault coming is fine. Pin
ScottM121-Feb-11 18:57
ScottM121-Feb-11 18:57 
Questionhow to change a color of particular word in the row in ssrs reports Pin
vinu.111119-Feb-11 0:51
vinu.111119-Feb-11 0:51 
AnswerRe: how to change a color of particular word in the row in ssrs reports Pin
Wendelius19-Feb-11 1:17
mentorWendelius19-Feb-11 1:17 
QuestionSQL Express Redistribution Pin
εїзεїзεїз18-Feb-11 22:00
εїзεїзεїз18-Feb-11 22:00 
AnswerRe: SQL Express Redistribution Pin
Wendelius18-Feb-11 22:15
mentorWendelius18-Feb-11 22:15 
GeneralRe: SQL Express Redistribution Pin
εїзεїзεїз19-Feb-11 18:29
εїзεїзεїз19-Feb-11 18:29 
GeneralRe: SQL Express Redistribution Pin
Wendelius20-Feb-11 7:05
mentorWendelius20-Feb-11 7:05 
AnswerRe: SQL Express Redistribution Pin
PIEBALDconsult19-Feb-11 5:24
mvePIEBALDconsult19-Feb-11 5:24 
GeneralRe: SQL Express Redistribution Pin
Wendelius19-Feb-11 6:58
mentorWendelius19-Feb-11 6:58 
GeneralRe: SQL Express Redistribution Pin
εїзεїзεїз19-Feb-11 18:29
εїзεїзεїз19-Feb-11 18:29 
GeneralRe: SQL Express Redistribution Pin
εїзεїзεїз19-Feb-11 18:30
εїзεїзεїз19-Feb-11 18:30 
QuestionInsert Record into Access Pin
Brad Fackrell18-Feb-11 4:52
Brad Fackrell18-Feb-11 4:52 
AnswerRe: Insert Record into Access Pin
Luc Pattyn18-Feb-11 5:23
sitebuilderLuc Pattyn18-Feb-11 5:23 
GeneralRe: Insert Record into Access Pin
Brad Fackrell18-Feb-11 5:41
Brad Fackrell18-Feb-11 5:41 
GeneralRe: Insert Record into Access Pin
Wendelius18-Feb-11 5:42
mentorWendelius18-Feb-11 5:42 
AnswerRe: Insert Record into Access Pin
Wendelius18-Feb-11 5:26
mentorWendelius18-Feb-11 5:26 
GeneralRe: Insert Record into Access Pin
Brad Fackrell18-Feb-11 5:45
Brad Fackrell18-Feb-11 5:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.