RE: Problem running MySQL in high school lab

2004-08-31 Thread SGreen
I second Todd's suggestion. 

There is no need to run Cygwin in order to have the MySQL servers or 
clients or any of its tools operating under Win32 (95, 98, 2000, ME, 2003, 
XP, etc). I only ever use Cygwin when I need to run a remote Linux desktop 
and as a teaching tool. Everything else I do with MySQL is platform 
specific. If I am on a *nix platform, I use *nix tools. If I am on Win32, 
I use Win32 tools. The differences are minimal and the stability is well 
worth it.

Shawn Green
Database Administrator
Unimin Corporation - Spruce Pine

Donny Simonton [EMAIL PROTECTED] wrote on 08/30/2004 09:37:26 PM:

 Todd,
 I don't use Windows XP as a production machine, but I do run MySQL on my
 personal machine running Windows XP, I run the Windows version of MySQL. 
 Is
 there any reason that you are using Cygwin to run MySQL when you can run 
the
 MySQL windows binaries without any problems?  The only thing I can think 
of
 is you are trying to teach them linux as well.
 
 I know in the MySQL training classes offered by MySQL they are always 
taught
 using Windows 2000 or XP, and they use the standard MySQL windows 
installer.
 
 Donny
 
  -Original Message-
  From: Todd O'Bryan [mailto:[EMAIL PROTECTED]
  Sent: Monday, August 30, 2004 8:09 PM
  To: [EMAIL PROTECTED]
  Subject: Problem running MySQL in high school lab
  
  I'm trying to teach my students how to use MySQL, and have installed 
it
  on all the lab machines along with Cygwin. Originally, I had the
  permissions set wrong and my students couldn't start the server, but I
  fixed that, and now mysqld works fine.
  
  Unfortunately, if you then mysql -u root, after a rather short period
  of time, the program crashes and pops an error message to the screen.
  The message, which I should have written down but didn't, says that 
an
  assertion has failed in ftell.c (not sure about the filename, but the
  gist is right) and stream != NULL (that I'm sure of) and then the
  program dies.
  
  I don't have similar problems when I'm logged in as me (which has
  Administrator privileges) or the machine Administrator. It must be a
  permissions problem, but I don't know what I need to give the students
  to prevent it. The MySQL stuff on the local machines need not be
  secure, so I've given full access to all users in the entire
  /cygwin/usr/local/ directory and its subdirectories, which is where I
  installed MySQL and all the other packages we're going to be playing
  with.
  
  There are some kids in there who don't need the temptation of being
  logged
  in as an Administrator, and since we're going to be using JDBC later
  for which
  the MySQL server will need to be running almost constantly in the
  background,
  I'd like to get this resolved with the least amount of temptation.
  
  The lab is all Windows XP Professional machines, and the students log
  into a
  domain hosted by a server in another teacher's lab.
  
  Any ideas appreciated,
  Todd
  
  P.S. If you could cc me any replies, I'd appreciate it, since I read
  the list on
  digest.
  
  
  --
  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]
 


Problem running MySQL in high school lab

2004-08-30 Thread Todd O'Bryan
I'm trying to teach my students how to use MySQL, and have installed it
on all the lab machines along with Cygwin. Originally, I had the
permissions set wrong and my students couldn't start the server, but I
fixed that, and now mysqld works fine.
Unfortunately, if you then mysql -u root, after a rather short period
of time, the program crashes and pops an error message to the screen.
The message, which I should have written down but didn't, says that an
assertion has failed in ftell.c (not sure about the filename, but the
gist is right) and stream != NULL (that I'm sure of) and then the
program dies.
I don't have similar problems when I'm logged in as me (which has
Administrator privileges) or the machine Administrator. It must be a
permissions problem, but I don't know what I need to give the students
to prevent it. The MySQL stuff on the local machines need not be
secure, so I've given full access to all users in the entire
/cygwin/usr/local/ directory and its subdirectories, which is where I
installed MySQL and all the other packages we're going to be playing
with.
There are some kids in there who don't need the temptation of being 
logged
in as an Administrator, and since we're going to be using JDBC later 
for which
the MySQL server will need to be running almost constantly in the 
background,
I'd like to get this resolved with the least amount of temptation.

The lab is all Windows XP Professional machines, and the students log 
into a
domain hosted by a server in another teacher's lab.

Any ideas appreciated,
Todd
P.S. If you could cc me any replies, I'd appreciate it, since I read 
the list on
digest.

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


RE: Problem running MySQL in high school lab

2004-08-30 Thread Donny Simonton
Todd,
I don't use Windows XP as a production machine, but I do run MySQL on my
personal machine running Windows XP, I run the Windows version of MySQL.  Is
there any reason that you are using Cygwin to run MySQL when you can run the
MySQL windows binaries without any problems?  The only thing I can think of
is you are trying to teach them linux as well.

I know in the MySQL training classes offered by MySQL they are always taught
using Windows 2000 or XP, and they use the standard MySQL windows installer.

Donny

 -Original Message-
 From: Todd O'Bryan [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 30, 2004 8:09 PM
 To: [EMAIL PROTECTED]
 Subject: Problem running MySQL in high school lab
 
 I'm trying to teach my students how to use MySQL, and have installed it
 on all the lab machines along with Cygwin. Originally, I had the
 permissions set wrong and my students couldn't start the server, but I
 fixed that, and now mysqld works fine.
 
 Unfortunately, if you then mysql -u root, after a rather short period
 of time, the program crashes and pops an error message to the screen.
 The message, which I should have written down but didn't, says that an
 assertion has failed in ftell.c (not sure about the filename, but the
 gist is right) and stream != NULL (that I'm sure of) and then the
 program dies.
 
 I don't have similar problems when I'm logged in as me (which has
 Administrator privileges) or the machine Administrator. It must be a
 permissions problem, but I don't know what I need to give the students
 to prevent it. The MySQL stuff on the local machines need not be
 secure, so I've given full access to all users in the entire
 /cygwin/usr/local/ directory and its subdirectories, which is where I
 installed MySQL and all the other packages we're going to be playing
 with.
 
 There are some kids in there who don't need the temptation of being
 logged
 in as an Administrator, and since we're going to be using JDBC later
 for which
 the MySQL server will need to be running almost constantly in the
 background,
 I'd like to get this resolved with the least amount of temptation.
 
 The lab is all Windows XP Professional machines, and the students log
 into a
 domain hosted by a server in another teacher's lab.
 
 Any ideas appreciated,
 Todd
 
 P.S. If you could cc me any replies, I'd appreciate it, since I read
 the list on
 digest.
 
 
 --
 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: Problem running MySQL on MacOS X.3

2004-05-11 Thread Brent Baisley
If you don't have a process mysqld running, then mysql isn't running. 
You may try starting up mysql directly (just type mysqld), rather than 
through the startup script or through mysqld_safe, since they suppress 
the error messages. You should then see some error message that may 
help determine why mysql isn't running.
Also, to access mysql, you should provide user name and password. You 
won't be able to access it if you don't, unless it's configured that 
way.
mysql -u username -p

Keep in mind that the username and password are not related to the 
username and password in the OS. Many people trying to run it on a Mac 
miss this point.

You may also try running the repair disk permissions from Apple's Disk 
Utility and then installing MySQL again. In the past there had been 
privilege issues on certain folders that prevented MySQL from running 
or installing correctly.

That said, I've been running MySQL on a Mac for quite some time without 
a problem. So if will run. There are some known issues with running 4.1 
on a Mac.

On May 10, 2004, at 5:21 PM, Tim Jarman wrote:

I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and 
ran the
binary installer (mysql-standard-4.0.18.pkg and it appeared to work 
fine; I
have /usr/local/mysql and so on as per the docs. I also installed
MySQLStartupItem.

However, I don't actually appear to have a functional installation. If 
I do:

/usr/local/mysql/bin/mysql
or even

sudo /usr/local/mysql/bin/mysql
I get:

ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
although /tmp/mysql.sock does exist, which seems to indicate the 
server is
running. But then again ps -a -x doesn't seem to show it, so maybe it 
isn't;
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running 
happily,
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:

sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server
but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing lists
archive, the latter of which suggested this email address. Any clues 
would be
most welcome! Please cc any replies to me as I am not currently 
subscribed to
any of the MySQL lists.

Thanks in advance,

Tim Jarman

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


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search  Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Problem running MySQL on MacOS X.3

2004-05-11 Thread Gabriel Ricard
Did you configure MySQL and run the 
/usr/local/mysql/scripts/mysql_install_db to initialize your data 
directory?

- Gabriel

On May 10, 2004, at 5:21 PM, Tim Jarman wrote:

I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and 
ran the
binary installer (mysql-standard-4.0.18.pkg and it appeared to work 
fine; I
have /usr/local/mysql and so on as per the docs. I also installed
MySQLStartupItem.

However, I don't actually appear to have a functional installation. If 
I do:

/usr/local/mysql/bin/mysql
or even

sudo /usr/local/mysql/bin/mysql
I get:

ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
although /tmp/mysql.sock does exist, which seems to indicate the 
server is
running. But then again ps -a -x doesn't seem to show it, so maybe it 
isn't;
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running 
happily,
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:

sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server
but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing lists
archive, the latter of which suggested this email address. Any clues 
would be
most welcome! Please cc any replies to me as I am not currently 
subscribed to
any of the MySQL lists.

Thanks in advance,

Tim Jarman

--
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: Problem running MySQL on MacOS X.3

2004-05-11 Thread Rich Allen

ps should show you something like the following:

Jupiter:~/desktop hcir$ ps uax | grep mysql
root  291   0.0  0.118644   1072  ??  S 3May04   0:00.06 sh  
./bin/safe_mysqld --user=mysql
mysql 338   0.0  2.551720  19872  ??  S 3May04  10:17.86  
/usr/local/mysql-standard-4.1.0-alpha-apple-darwin6.4-powerpc/bin/ 
mysqld
hcir20399   0.0  0.018172344 std  S+   10:52AM   0:00.01  
grep mysql

if you dont see this i would check the error log after you try to start  
the server with something like:

#/usr/local/mysql/bin/mysqld_safe -uuser 

- hcir

On May 11, 2004, at 10:29 AM, Gabriel Ricard wrote:

Did you configure MySQL and run the  
/usr/local/mysql/scripts/mysql_install_db to initialize your data  
directory?

- Gabriel

On May 10, 2004, at 5:21 PM, Tim Jarman wrote:

I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and  
ran the
binary installer (mysql-standard-4.0.18.pkg and it appeared to work  
fine; I
have /usr/local/mysql and so on as per the docs. I also installed
MySQLStartupItem.

However, I don't actually appear to have a functional installation.  
If I do:

/usr/local/mysql/bin/mysql
or even

sudo /usr/local/mysql/bin/mysql
I get:

ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (61)
although /tmp/mysql.sock does exist, which seems to indicate the  
server is
running. But then again ps -a -x doesn't seem to show it, so maybe  
it isn't;
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running  
happily,
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:

sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server
but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing  
lists
archive, the latter of which suggested this email address. Any clues  
would be
most welcome! Please cc any replies to me as I am not currently  
subscribed to
any of the MySQL lists.

Thanks in advance,

Tim Jarman



- hcir

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


Problem running MySQL on MacOS X.3

2004-05-10 Thread Tim Jarman
I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and ran the 
binary installer (mysql-standard-4.0.18.pkg and it appeared to work fine; I 
have /usr/local/mysql and so on as per the docs. I also installed 
MySQLStartupItem.

However, I don't actually appear to have a functional installation. If I do:

/usr/local/mysql/bin/mysql

or even

sudo /usr/local/mysql/bin/mysql

I get:

ERROR 2002: Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (61)

although /tmp/mysql.sock does exist, which seems to indicate the server is 
running. But then again ps -a -x doesn't seem to show it, so maybe it isn't; 
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running happily, 
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:

sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server

but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing lists 
archive, the latter of which suggested this email address. Any clues would be 
most welcome! Please cc any replies to me as I am not currently subscribed to 
any of the MySQL lists.

Thanks in advance,

Tim Jarman


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



Re: Problem running MySQL on MacOS X.3

2004-05-10 Thread Sasha Pachev
Tim Jarman wrote:
I have an iBook G4 running MacOS X.3 on Darwin 7.0. I downloaded and ran the 
binary installer (mysql-standard-4.0.18.pkg and it appeared to work fine; I 
have /usr/local/mysql and so on as per the docs. I also installed 
MySQLStartupItem.

However, I don't actually appear to have a functional installation. If I do:


/usr/local/mysql/bin/mysql


or even


sudo /usr/local/mysql/bin/mysql


I get:

ERROR 2002: Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (61)

although /tmp/mysql.sock does exist, which seems to indicate the server is 
running. But then again ps -a -x doesn't seem to show it, so maybe it isn't; 
if I do ps -A |fgrep mysql on my Linux box, where MySQL is running happily, 
I get a hit for mysqld_safe plus ten others for mysqld.

I tried starting the server manually as suggested in the docs:


sudo /Library/StartupItems/MySQL/MySQL start
Starting MySQL database server


but when I try running mysql I get error 2002 as before.

I found mention of this problem on FAQTS and in the MySQL mailing lists 
archive, the latter of which suggested this email address. Any clues would be 
most welcome! Please cc any replies to me as I am not currently subscribed to 
any of the MySQL lists.
Tim:

perror 61 will reveal some details about why exactly the connection on 
/tmp/mysql.sock cannot happen. If that does not make it obvious ( and it is a 
good possibility that it would not), try mysql -h 127.0.0.1 instead to bypass 
the Unix socket and use TCP/IP.

--
Sasha Pachev
Create online surveys at http://www.surveyz.com/
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Problem running MySQL

2004-04-14 Thread Franz Klein
Hi

I have installed MySQL 4.0.18-nt on a Windows XP machine connected to a
network. I have administrator privileges. I have also installed MySQL
Administrator. When I try to look at the users I get the following error
message:

Could not fetch Usernames
MySQL Error Nr. 1044
Access denied for user: '@%' to database 'mysql'

When I run WinMySQLAdmin 1.4 and click on the 'Databases' tab no databases
are listed. When I work from the console and at the mysql prompt when I
type in SHOW DATABSES; it only lists the test database but not the mysql
database.

When I use the MySQL Contorl Client to view the server I get:
ERROR 1227: Access denied. You need the PROCESS privilege for this operation

I have tried using the mysql_fix_privileges.sql but that also gives me lots
of errors.

Does anybody have an idea of what is wrong? I have repeatedly tried to
reinstall MySQL.

Thanks
Franz Klein

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



Re: Problem running MySQL

2004-04-14 Thread Egor Egorov
Franz Klein [EMAIL PROTECTED] wrote:
 
 I have installed MySQL 4.0.18-nt on a Windows XP machine connected to a
 network. I have administrator privileges. I have also installed MySQL
 Administrator. When I try to look at the users I get the following error
 message:
 
 Could not fetch Usernames
 MySQL Error Nr. 1044
 Access denied for user: '@%' to database 'mysql'
 
 When I run WinMySQLAdmin 1.4 and click on the 'Databases' tab no databases
 are listed. When I work from the console and at the mysql prompt when I
 type in SHOW DATABSES; it only lists the test database but not the mysql
 database.
 
 When I use the MySQL Contorl Client to view the server I get:
 ERROR 1227: Access denied. You need the PROCESS privilege for this operation
 
 I have tried using the mysql_fix_privileges.sql but that also gives me lots
 of errors.
 
 Does anybody have an idea of what is wrong? I have repeatedly tried to
 reinstall MySQL.
 

You connected to MySQL server as anonymous user that has pribileges only on the 
database 'test'. Connect as user that has enough privileges, for example as user 
'root'.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [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]



Problem running MySql on Solaris 8?

2002-03-08 Thread Jiankang Zhao

Every time I run safe_mysqld, I get the following
error message:


# ./safe_mysqld
chown: unknown user id mysql
Starting mysqld daemon with databases from
/usr/local/mysql/var
Killed
020308 22:12:04  mysqld ended

# 

How do I handle this?



__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: problem running mysql from the command line

2001-11-23 Thread DL Neil

 I hope I'm not being really stupid, but this does not seem to work:
 
 mysql -h localhost -u xxx -p
 
 I get the command line usage error. It appears I can't use any other option
 if I use the -h. This works fine
 
 mysql -u xxx -p
 
 I'm running mysql version 3.23.43-nt


Glenn,

Is the MySQL\bin (wherever it is) sub-directory the current directory, or is it in the 
PATH?

=dn



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




problem running mysql from the command line

2001-11-21 Thread Glenn Hirschowitz

I hope I'm not being really stupid, but this does not seem to work:

mysql -h localhost -u xxx -p

I get the command line usage error. It appears I can't use any other option
if I use the -h. This works fine

mysql -u xxx -p

I'm running mysql version 3.23.43-nt

Glenn


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php