Re: Show database problem

2003-09-03 Thread Victoria Reznichenko
Joris Beckers [EMAIL PROTECTED] wrote:
 
 I used the flush privileges command
 
 There are in total 6 databases
 
 But only mysql and cehdb are visible.
 
 The MySQL version is 4.1.0-max-nt
 
 There are no other hosts configured for that user other then %
 
 Because it's mysql 4, the safe-show-database option is not usefull
 
 All the users that existed function normal
 
 I tried making some other users
 
 All of them have the same problem
 
 Some show the mysql database, others show yet an other database
 
 It's strange. Can't find any reasonable explanation
 

Really strange .. But I wasn't able to repeat it :( It worked fine for me for all 
users.
What is the output of SELECT USER()?


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   ___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Show database problem

2003-09-02 Thread Albert
When I enter :

mysql\binSHOW GRANTS FOR uma;

I get a response that show is not a command etc.. 

This is on Win32 version 4.x

The same happens when I try it from mysql
and also after I run mysqld

Any ideas what is wrong here?
Thanks

Albert


- Original Message - 
From: Joris Beckers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 01, 2003 11:19 AM
Subject: Show database problem


 I've got a user, admFrederic
 He got the grants shown below.
 Those are correct and I configured them that way.
 
 mysql SHOW GRANTS FOR admFrederic;
 +---
 +
 | Grants for [EMAIL PROTECTED]
 |
 +---
 +
 | GRANT USAGE ON *.* TO 'admFrederic'@'%' IDENTIFIED BY PASSWORD
 '6ddf5e1a1cc75e8a' |
 | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER ON `cehdb`.* TO
 'admFrederic'@'%' |
 +---
 +
 
 
 But, when I log in using that username. That user can access the main
 database...
 
 mysql show databases;
 +--+
 | Database |
 +--+
 | cehdb|
 | mysql|
 +--+
 
 
 Does anyone know how to fix this?
 Only cehdb should be accessable.
 Also, the user can run SQL commands on the mysql database.
 GRANT commands etc. are not possible.
 
 This is the version info.
 
 mysql status;
 --
 mysql  Ver 11.18 Distrib 3.23.53, for Win95/Win98 (i32)
 
 Connection id:  351
 Current database:
 Current user:   [EMAIL PROTECTED]
 Server version: 4.1.0-alpha-max-nt
 Protocol version:   10
 Connection: nemesis via TCP/IP
 Client characterset:latin1
 Server characterset:latin1
 TCP port:   
 Uptime: 1 hour 6 min 14 sec
 
 
 Thanks,
 Joris
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Show database problem

2003-09-02 Thread Fortuno, Adam
Albert,

This may sound minuscule. You're certain that 'uma' is a user account and
not a database or table?

Normally, you use SHOW GRANTS FOR user_account. See example:

mysql SHOW GRANTS FOR test_usr;
+--+
| Grants for [EMAIL PROTECTED]
+--+
| GRANT USAGE ON *.* TO 'test_usr'@'%
| GRANT ALL PRIVILEGES ON 'tempdb'.* TO 'test_usr'@'%'
| GRANT ALL PRIVILEGES ON 'test'.* TO 'test_usr'@'%'
+--+

However, if you attempt to show grants on an object with SHOW GRANTS FOR
object_name you get the following error. See example:

mysql SHOW GRANTS FOR tempdb;
ERROR 1141: There is no such grant defined for user 'tempdb' on host '%'

Albert, one suggestion. Next time provide the exact error message. It makes
it easier to assist.

Regards,
Adam

-Original Message-
From: Albert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Show database problem


When I enter :

mysql\binSHOW GRANTS FOR uma;

I get a response that show is not a command etc.. 

This is on Win32 version 4.x

The same happens when I try it from mysql
and also after I run mysqld

Any ideas what is wrong here?
Thanks

Albert


- Original Message - 
From: Joris Beckers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 01, 2003 11:19 AM
Subject: Show database problem


 I've got a user, admFrederic
 He got the grants shown below.
 Those are correct and I configured them that way.
 
 mysql SHOW GRANTS FOR admFrederic;
 +---
 +
 | Grants for [EMAIL PROTECTED]
 |
 +---
 +
 | GRANT USAGE ON *.* TO 'admFrederic'@'%' IDENTIFIED BY PASSWORD
 '6ddf5e1a1cc75e8a' |
 | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER ON `cehdb`.* TO
 'admFrederic'@'%' |
 +---
 +
 
 
 But, when I log in using that username. That user can access the main
 database...
 
 mysql show databases;
 +--+
 | Database |
 +--+
 | cehdb|
 | mysql|
 +--+
 
 
 Does anyone know how to fix this?
 Only cehdb should be accessable.
 Also, the user can run SQL commands on the mysql database.
 GRANT commands etc. are not possible.
 
 This is the version info.
 
 mysql status;
 --
 mysql  Ver 11.18 Distrib 3.23.53, for Win95/Win98 (i32)
 
 Connection id:  351
 Current database:
 Current user:   [EMAIL PROTECTED]
 Server version: 4.1.0-alpha-max-nt
 Protocol version:   10
 Connection: nemesis via TCP/IP
 Client characterset:latin1
 Server characterset:latin1
 TCP port:   
 Uptime: 1 hour 6 min 14 sec
 
 
 Thanks,
 Joris
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Show database problem

2003-09-02 Thread Roger Baklund
* Albert
 When I enter :

 mysql\binSHOW GRANTS FOR uma;

 I get a response that show is not a command etc..

 This is on Win32 version 4.x

 The same happens when I try it from mysql
 and also after I run mysqld

 Any ideas what is wrong here?

When you say you try it from mysql do you mean standing in the mysql
directory in the command promt? In that case, that would be the explanation.
When you see mysql on this list, it means the mysql SQL shell, AKA the
mysql command line, AKA the mysql monitor, AKA the standard client. It is an
executable in the mysql/bin directory, named mysql.exe on win32. Execute
this program, and then enter your SQL commands.

URL: http://www.mysql.com/doc/en/mysql.html 

--
Roger



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Show database problem

2003-09-02 Thread Albert
This is the error I get and yes uma is a user and listed in my.ini file
actually

C:\mysql\binSHOW GRANTS FOR uma;
'SHOW' is not recognized as an internal or external command,
operable program or batch file.

C:\mysql\bin

Albert


- Original Message - 
From: Fortuno, Adam [EMAIL PROTECTED]
To: 'Albert' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 9:38 AM
Subject: RE: Show database problem


 Albert,

 This may sound minuscule. You're certain that 'uma' is a user account and
 not a database or table?

 Normally, you use SHOW GRANTS FOR user_account. See example:

 mysql SHOW GRANTS FOR test_usr;
 +--+
 | Grants for [EMAIL PROTECTED]
 +--+
 | GRANT USAGE ON *.* TO 'test_usr'@'%
 | GRANT ALL PRIVILEGES ON 'tempdb'.* TO 'test_usr'@'%'
 | GRANT ALL PRIVILEGES ON 'test'.* TO 'test_usr'@'%'
 +--+

 However, if you attempt to show grants on an object with SHOW GRANTS FOR
 object_name you get the following error. See example:

 mysql SHOW GRANTS FOR tempdb;
 ERROR 1141: There is no such grant defined for user 'tempdb' on host '%'

 Albert, one suggestion. Next time provide the exact error message. It
makes
 it easier to assist.

 Regards,
 Adam

 -Original Message-
 From: Albert [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 8:46 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Show database problem


 When I enter :

 mysql\binSHOW GRANTS FOR uma;

 I get a response that show is not a command etc..

 This is on Win32 version 4.x

 The same happens when I try it from mysql
 and also after I run mysqld

 Any ideas what is wrong here?
 Thanks

 Albert


 - Original Message - 
 From: Joris Beckers [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, September 01, 2003 11:19 AM
 Subject: Show database problem


  I've got a user, admFrederic
  He got the grants shown below.
  Those are correct and I configured them that way.
 
  mysql SHOW GRANTS FOR admFrederic;
  +---
  +
  | Grants for [EMAIL PROTECTED]
  |
  +---
  +
  | GRANT USAGE ON *.* TO 'admFrederic'@'%' IDENTIFIED BY PASSWORD
  '6ddf5e1a1cc75e8a' |
  | GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER ON `cehdb`.* TO
  'admFrederic'@'%' |
  +---
  +
 
 
  But, when I log in using that username. That user can access the main
  database...
 
  mysql show databases;
  +--+
  | Database |
  +--+
  | cehdb|
  | mysql|
  +--+
 
 
  Does anyone know how to fix this?
  Only cehdb should be accessable.
  Also, the user can run SQL commands on the mysql database.
  GRANT commands etc. are not possible.
 
  This is the version info.
 
  mysql status;
  --
  mysql  Ver 11.18 Distrib 3.23.53, for Win95/Win98 (i32)
 
  Connection id:  351
  Current database:
  Current user:   [EMAIL PROTECTED]
  Server version: 4.1.0-alpha-max-nt
  Protocol version:   10
  Connection: nemesis via TCP/IP
  Client characterset:latin1
  Server characterset:latin1
  TCP port:   
  Uptime: 1 hour 6 min 14 sec
 
 
  Thanks,
  Joris
 
 
  -- 
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 


 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Show database problem

2003-09-02 Thread Albert
Stefan,

Indeed, and my mistake (semantics). I meant what you explained. It is clear

to me that the order in the table remains in the manner the data were

entered, and that cannot be changed, unless a record is deleted and then

re-entered, which would place it elsewhere (at the end). This does not

really have any benefits IMHO.

And yes, I understand that it is the output that is sorted based on the

query. Thanks for clarifying this, and as I read my question, I should have

seen the difference myself. Mea culpa! : =)

I am quite familiar with SQL Server 2000, but need to use MySQL for a

project for the University I am at (Devry Alpharetta, Atlanta), to capture

the input from a student survey of the classes and the Faculty members.

There are several fields: semester (char), course(char), courseID (int),

Faculty (varchar[30] - if that is acceptable in that format - and the

answers to 18 questions, all alpha characters (char) or numeric char (int),

and one Boolean (yes/no or 1,0).

I need to figure out how to best structure this, e.g. create tables on the

fly (if that is possible using ASP/ADO and SQL with ODBC connector), or

create tables with many to many relationships and store the data for each

course survey in a separate table.

The tables with many to many relationships would hold all the courses,

courseID's, and Faculty members, and the answers to the survey would create

links between those and the results from the surveys.

A typical class unique identification would look like this:

sum03_FBaah_CIS_349

The cols would be 1 through 18 + a calculation col for the average of

questions 1 to 18 and a col for the average of all answers to question 1,

question 2, etc ...

Mind you I may export the answers to an excel spreadsheet and do the

calculations there rather than in the DB itself.

Anyway this is a long answer to your response but I wanted those who read

this to get an idea of what I am working with.

Any suggestions are welcomed.

Albert

- Original Message - 
From: Fortuno, Adam [EMAIL PROTECTED]
To: 'Albert' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 9:38 AM
Subject: RE: Show database problem


.com


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Show database problem

2003-09-02 Thread Antony Dovgal
On Tue, 2 Sep 2003 08:45:42 -0400
Albert [EMAIL PROTECTED] wrote:

 When I enter :
 
 mysql\binSHOW GRANTS FOR uma;
 
 I get a response that show is not a command etc.. 
 
 This is on Win32 version 4.x
 
 The same happens when I try it from mysql
 and also after I run mysqld
 
 Any ideas what is wrong here?
 Thanks

you should enter this in mysql console, not in shell.
run .../mysql/bin/mysql binary (--help option will show you all possible keys) and 
then enter MySQL commands.

---
WBR,
Antony Dovgal aka tony2001
[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Show database problem

2003-09-02 Thread Albert
OK I think I got it, in Win32 it has to be done from the mysql client screen
and not from the command prompt.

Either that or use another GUI client as the front end for MySQL I guess and
I have had some suggestions on that one.

I will try doing so. Thanks for the help

Albert


- Original Message - 
From: Roger Baklund [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Albert [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 9:36 AM
Subject: Re: Show database problem


 * Albert
  When I enter :
 
  mysql\binSHOW GRANTS FOR uma;
 
  I get a response that show is not a command etc..
 
  This is on Win32 version 4.x
 
  The same happens when I try it from mysql
  and also after I run mysqld
 
  Any ideas what is wrong here?

 When you say you try it from mysql do you mean standing in the mysql
 directory in the command promt? In that case, that would be the
explanation.
 When you see mysql on this list, it means the mysql SQL shell, AKA the
 mysql command line, AKA the mysql monitor, AKA the standard client. It is
an
 executable in the mysql/bin directory, named mysql.exe on win32. Execute
 this program, and then enter your SQL commands.

 URL: http://www.mysql.com/doc/en/mysql.html 

 --
 Roger




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Show database problem

2003-09-01 Thread Antony Dovgal
On Mon, 1 Sep 2003 17:19:52 +0200
Joris Beckers [EMAIL PROTECTED] wrote:

 I've got a user, admFrederic
 He got the grants shown below.
 Those are correct and I configured them that way.

don't forget about
FLUSH PRIVILEGES;

---
WBR,
Antony Dovgal aka tony2001
[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Show database problem

2003-09-01 Thread Yves Goergen
On Monday, September 01, 2003 5:19 PM CEST, Joris Beckers wrote:
 But, when I log in using that username. That user can access the main
 database...

 snip

 Does anyone know how to fix this?
 Only cehdb should be accessable.

Did you try to set the safe-show-database flag? Hm, let me see where I have
put this... OK, I put it in my c:\winnt\my.ini. Here's the line:

[mysqld]
safe-show-database

This is generally the way to hide non-rights databases to users, on MySQL 3.
It's the default behaviour since MySQL 4.

 Also, the user can run SQL commands on the mysql database.

What does that mean? The user can successfully SELECT data from mysql.* ?
Then it's a granted privilege that enables him to do so. Did you look at
other GRANTS for other hosts than % ?

 This is the version info.

 mysql status;
 --
 mysql  Ver 11.18 Distrib 3.23.53, for Win95/Win98 (i32)

 Connection id:  351
 Current database:
 Current user:   [EMAIL PROTECTED]
 Server version: 4.1.0-alpha-max-nt
 Protocol version:   10
 Connection: nemesis via TCP/IP
 Client characterset:latin1
 Server characterset:latin1
 TCP port:   
 Uptime: 1 hour 6 min 14 sec

What's the MySQL server version here, please? 3.23.53 (win) or 4.1.0-max-nt?
Can't interpret your information here very well...

-- 
Yves Goergen
[EMAIL PROTECTED]
Please don't CC me (causes double mails)


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Show database problem

2003-09-01 Thread Joris Beckers
I used the flush privileges command

There are in total 6 databases

But only mysql and cehdb are visible.

The MySQL version is 4.1.0-max-nt

There are no other hosts configured for that user other then %

Because it's mysql 4, the safe-show-database option is not usefull

All the users that existed function normal

I tried making some other users

All of them have the same problem

Some show the mysql database, others show yet an other database



It's strange. Can't find any reasonable explanation





 But, when I log in using that username. That user can access the main

 database...



 snip



 Does anyone know how to fix this?

 Only cehdb should be accessable.



Did you try to set the safe-show-database flag? Hm, let me see where I
have put this... OK, I put it in my c:\winnt\my.ini. Here's the line:



[mysqld]

safe-show-database



This is generally the way to hide non-rights databases to users, on
MySQL 3. It's the default behaviour since MySQL 4.



 Also, the user can run SQL commands on the mysql database.



What does that mean? The user can successfully SELECT data from mysql.*
? Then it's a granted privilege that enables him to do so. Did you look
at other GRANTS for other hosts than % ?



 This is the version info.



 mysql status;

 --

 mysql  Ver 11.18 Distrib 3.23.53, for Win95/Win98 (i32)



 Connection id:  351

 Current database:

 Current user:   [EMAIL PROTECTED]

 Server version: 4.1.0-alpha-max-nt

 Protocol version:   10

 Connection: nemesis via TCP/IP

 Client characterset:latin1

 Server characterset:latin1

 TCP port:   

 Uptime: 1 hour 6 min 14 sec



What's the MySQL server version here, please? 3.23.53 (win) or
4.1.0-max-nt? Can't interpret your information here very well...



--

Yves Goergen

[EMAIL PROTECTED]

Please don't CC me (causes double mails)



  http://firstknight.no-ip.com:4001/PixelBug.asp?Seed=030901210342