Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all 7171 articles
Browse latest View live

MySQL batch doesn't work in batch files (no replies)

$
0
0
This is what I get on the command line:

>mysql --user=root --password=password --port=3308 < temp.sql
size
756.57812500

Now, if I put "mysql --user=root --password=password --port=3308 < temp.sql" in a batch file and run it, this is what I get:

>sizetest.bat
>mysql --user=root --password=password --port=3308 0<temp.sql
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

I'm obviously able to connect to MySQL, but for some reason it doesn't work when it's in a batch file as opposed to simply typing it out. Why is this?


EDIT: It worked in the batch file when I put
"mysql -uroot -ppassword -P3308 < temp.sql"
instead of
"mysql --user=root --password=password --port=3308 < temp.sql"

I'd still like to know the nature of this anomaly, however. Perhaps some dashes need to be escaped or something like that?

Install problem 5.5.6 (no replies)

$
0
0
I installed 5.5.6 on new MacBookPro with Snow Leopard. MySql will not start. I receive the following error window:

Insecure Startup Item disabled

"/Library/StartupItems/MySQLCOM" has not been
started because it does not have the proper security
settings.

I have no clue how to resolve this issue. Nor do I know how to remove the version and revert to 5.1x. the latter will not install because of the installed newer version.

I want to use this program with Archivist's toolkit for the Fox Island, WA, History Museum. Currently using 4D which great but not open source.

THANKS

Workbench 5.2.29 doesn't display any servers to admin (no replies)

$
0
0
I've just installed MySQL and the Workbench. I'm new to this.
Everything seemed to go smoothly with the install.

When I open the workbench, my database shows in the left hand panel and I can open it for queries.

The right hand panel under server administration is blank. When I click Server Administration, a dialog opens that is supposed to also list the available servers and it is blank. Therefore, there is NO WAY to administer the server, create users, etc. (except by entering SQL code in the query window I suppose, but then what's the point of a gui?)

What's wrong and how do I fix it.

This is windows with 32-bit gui (the only one available) and 64-bit MySQL 5.1.x CE.

Thank you
Thank you

config problems 5.1 (no replies)

$
0
0
i cannot get the config screen to go past "start services" i have deleted everything possible with mysql attached to it including in the reg edit files it simple now freezes and wont respond (before it was giving me error 0)

plz advise

Cannot login to MySQL (no replies)

$
0
0
Hi experts,

I installed MySQL (Server version: 5.0.91 Source distribution). Started the mysql process and it is running successfully.

However, when I try to login to the database, I'm facing the following issues.

a) Segmentation fault:

[xzy@hostname ~]$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 114
Server version: 5.0.91 Source distribution

Segmentation fault

b) Access denied error:

[xzy@hostname ~]$ mysql -u mysql -p
Enter password:
ERROR 1045 (28000): Access denied for user 'mysql'@'localhost' (using password: YES)

[xzy@hostname ~]$ mysql -u test -p
Enter password:
ERROR 1045 (28000): Access denied for user 'test'@'localhost' (using password: YES)

Kindly suggest as to what could be causing these issues.

OS details: Linux xxxxxxxx 2.6.18-194.11.3.el5 #1 SMP Mon Aug 23 15:51:38 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Thanks in advance for your help.

Error No. 1130 localhost is not allowed to connect to this MySQL Server (no replies)

$
0
0
Hi All,

I am new to MySQL. I have installed MySQL 4.1 it is installed in remote server . The problem is that when I try to login with MySQl its gives following Error:

Error No. 1130 localhost is not allowed to connect to this MySQL Server.

Let me inform you more:
1.. I was try to run the following command
mysql -u root --password=Mypwd -h localhost dbName < dumpFile_bk
but it gives me error that
" root does not have the enough privileges to access the data base.
So I have give all the privileges to root user but still same error
then I have checked in user table of "mysql" default database. there are two users with same name "root" but with different host name one has "localhost" and other has "%".
So I have remove the second "root" user who has the host name "%".

2. But then When I have disconnect and relogin in MySQL then It gives me the error:
Error No. 1130 localhost is not allowed to connect to this MySQL Server.

please help me.

Thank you in advance.

Moving from Debian to Fedora (2 replies)

$
0
0
I need to move a complete mysql install from one system o another and keep everything intact. The existing install is:
mysql Ver 14.12 Distrib 5.0.32
and the destination is:
mysql Ver 14.14 Distrib 5.1.50

I stopped the new server and copied /var/lib/mysql/mysql the new server, but when I attempt to restart I get the following in mysqld.log:

101022 14:39:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
101022 14:39:09 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
101022 14:39:09 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
101022 14:39:09 InnoDB: Started; log sequence number 0 44233
101022 14:39:09 [ERROR] /usr/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
101022 14:39:09 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
101022 14:39:09 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

If I restore the original /var/lib/mysql/mysql it comes right up.

My question is how to do the move. Should I only move part of the mysql.mysql contents along with the DB dirs?

libmysqlclient15-dev installation error (no replies)

$
0
0
Hi Experts,

While installing the package: libmysqlclient15-dev , Source: mysql-dfsg-5.0 on Debian Lenny (GNU/Linux, x86), I am getting the error as below.

./configure
Cannot find input file Docs/Makefile.in.

Please suggest. Thanks for your inputs in advance.

regards.

Installation fails - Can't open and lock privilege tables (1 reply)

$
0
0
Hi,

I'm installing MySQL 5.1.51 x64 MSI on a new windows server 2008 R2 enterprise production machine (I've never done that with windows before).

At first I installed and ran the server instance config wizard, which managed to pass configuring the my.ini file and freezing. It turned out that it probably couldn't start the service, because when I tried to run the service it failed without giving any good reason (nor was there a .err file to be found).

I figured maybe the special config I gave it through it off so I removed the instance and tried all defaults. Same result.
Went back to my tweaked config and attempted to run from CLI.

This time something happened:


101025 15:45:04 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
101025 15:45:04 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
InnoDB: The first specified data file F:\MySQL Datafiles\ibdata1 did not exist:
InnoDB: a new database to be created!
101025 15:45:05 InnoDB: Setting file F:\MySQL Datafiles\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
101025 15:45:05 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 123 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100
101025 15:45:07 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 123 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Progress in MB: 100
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
101025 15:45:08 InnoDB: Started; log sequence number 0 0
101025 15:45:08 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

There are a bunch of other attempts with maybe slightly varying logs, but the gist is eventually it can't find stuff on mysql db and asks me to run mysql_upgrade.

So what's next?
Any ideas?

InnoDB: Failed to set DIRECTIO_ON on file (no replies)

$
0
0
While creating innodb_file_per_table i am seeing these errors in the logs.

Could anyone help?

File System is Veritas.
innodb_flush_method=O_DIRECT

101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/BCs.ibd: CREATE: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/BCs.ibd: OPEN: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/FEs.ibd: CREATE: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/FEs.ibd: OPEN: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/PCs.ibd: CREATE: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/PCs.ibd: OPEN: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/TSs.ibd: CREATE: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/TSs.ibd: OPEN: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/aggregate.ibd: CREATE: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/aggregate.ibd: OPEN: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/cats.ibd: CREATE: Inappropriate ioctl for device, continuing anyway
101026 12:12:43 InnoDB: Failed to set DIRECTIO_ON on file ./prodsys/cats.ibd: OPEN: Inappropriate ioctl for device, continuing anyway

mysqlshow does not display the mysql database (no replies)

$
0
0
First you should know I'm running Snow Leopard on a Macbook Pro.
When I run /usr/local/mysql/bin/mysqlshow I get

+----------------------------+
| Databases |
+----------------------------+
| information_schema |
| test |
+----------------------------+

My understanding is that the mysql database has the grant tables
and according to the mysql 5.1 reference manual, running the .dmg
Mac Native Package Installation runs the mysql_install_db script,
which in turn creates the mysql database with the grant tables.

http://dev.mysql.com/doc/refman/5.1/en/unix-post-installation.html

The 3rd bullet point down states that mysql_install_db command is run for you.
Further down on this page its also states that running does no harm because it
does not overwrite any existing grant tables. I'm assuming that there was a problem during the installation with running this script, but I don't know where
the installation log files are to look.

So I manually ran the script and I get:

Installing MySQL system tables...
OK
Filling help tables....
OK

And the instructions on how to set the root password..etc

I again run the mysqlshow command and still do not see a mysql database.
Am I looking for something that's not suppose to be there?

Thank you for your time
Steve

Can't connect to Mysql via cmd prompt (6 replies)

$
0
0
I have Vista,
mysql is installed at c:\program files\mysql\mysql server 4.1
php is at c:\php and is v.5.2.99
apache is at c:\apache and is v. 2.2.14.0

Yes - I have done a search and already read the posts with this issue - nothing helped me.

(I had older versions of all 3 playing just fine on my old XP laptop, but can't get them to work on Vista)

PHP and Apache both run fine and play together just fine.
I can't access mysql thru apache using php, so I tried the command prompt, it doesn't work here either.

Windows task mgr shows MYSQL running at a service, name MYSQL, pid column says 1736 - whatever that means.

OK - command promt conversation:

c:\users\brenda>mysql/bin
ERROR 2003 <HY000>: can't connect to mysql server on 'localhost' <10061>

This prompt above also caused my Comodo security program to ask me about allowing cmd.exe to connect to mysql.exe (this tells me that with the above path I typed in, mysql/bin, that the computer DID find mysql.exe, so that is good. I typed lots of other paths and things at the command prompt, and only got errors saying couldn't find the path specified - so I know this is the thing to type, mysql/bin). And, the computer beeps then gives the error message.

I have been working on this problem for months, I can't figure out why I can't access my mysql db, it IS running as a service.

I would be so grateful if I could finally fix this problem. Does it matter what order I installed mysql/php/apache in? I did have an older version of mysql installed at first, but uninstalled it and cleaned it out of the registry.

Error libtoolT: No such file or directory when compiling mysql (no replies)

$
0
0
I am trying to install MySQL 5.1.51 on a Solaris 9 server using sourcecode but keep getting the following error when I run the configure command, how do I resolve.

./configure --prefix=/apps/mysql --datadir=/apps/mysql/data

config.status: executing depfiles commands
config.status: executing libtool commands
libtoolT: No such file or directory
config.status: executing default commands

Everytime I run a make afterwards it fails and the errors point towards libtool

Slow performance of PC when MySQL running (no replies)

$
0
0
Please help!

We are trying to install a piece of client-server software from the biological analysis company Agilent. This software (GenomicWorkbench 6) uses a MySQL database to store data.

The problem we are having is that when the MySQL is running the performance of the PC is very poor. We are running the system on Vista64 with a very high spec PC (twin processors with over 20Gb Ram and twin 1Tb disks) so the machine should be powerful enough to run the software. Also we are finding that the machine blue screens quite regularly. I think we are running version 5 of MySQL.

Can anyone out there offer some suggestions as to what might be the problem here. Is this something others have seen?

Please help as this is beginning to drive me & my colleague crazy! We are not computer/Oracle experts but have been lumbered with the task of getting this to work.

Can't log in as root (no replies)

$
0
0
I just had to installed mySQL 5.1.51 on my Mac after having used 5.1.32 before. Now I can't log in as root. I've tried using no password, my old password from the other installation, admin, all kinds of stuff. I've tried uninstalling and re-installing. Nothing works. It keeps telling me that the password is wrong.

I'm a developer, not a server admin, this is just for local dev on my laptop, so just assume that I'm a complete moron when it comes to Unix terminal stuff when you answer. Thanks.

Installing on Xserve 10.4 - Cant' start MySQL server... (1 reply)

$
0
0
I am an admitted newbie. I don't deal with MySQL that often although I have successfully installed it in the past. I have run the binary package installer on an Xserve running Mac OS X Server.

After running the installer, I went to /usr/local/ and there are two directories: mysql and mysql-5.1.51-osx10.4-i686.

I am now attempting to start the server. I am doing so by trying to run /usr/local/mysql-5.1.51-osx10.4-i686/bin/mysqld_safe. Doing this produces the following error message:


101028 09:46:27 mysqld_safe Logging to '/usr/local/mysql/data/newnan.com.err'.
101028 09:46:27 mysqld_safe The file /usr/local/mysql/bin/mysqld
does not exist or is not executable. Please cd to the mysql installation
directory and restart this script from there as follows:
./bin/mysqld_safe&
See http://dev.mysql.com/doc/mysql/en/mysqld-safe.html for more information

I have been trying to work thru this for 2 days and I'm now stuck. Can anybody assist me as to what I'm doing wrong? I have tried everything I can think of but can't seem to get the server to start up. Thanks for any help you guys can offer me.

Newbie Install problem (no replies)

$
0
0
On a MacBook Pro, os 10.6, I was following the advice of Lynda.com on installing MySQL, and updating Apache and PHP. I was ok until I got to checking the Preferences pane for MySQL, and learned that the MySQL Database server is stopped. When I tried to start MySQL Server, I got a message that "/Library/Startupitems/MySQL.COM has not been started because it doesn't have the proper security settings. Using the Terminal, I see that I now have Apache/2.2.14, PHP 5.3.2, and MySQL 5.5.6-rc. The instructions of Lynda.com gave Apache/1.3.33, PHP 5.2.1, and MySQL 5.0.27.

What should I do?

error "unable to load dbexpmysql.dll" (no replies)

$
0
0
Hi,

I am designing a database.
1. I go to the components/Tool pallette.
2. On the dbExpress tab I select TSQLConnection component and place it on the form.
3. I select it on the form so that I can go to the Object inspector to set its properties and values.
4. On the object inspector I can set all the properties to the values as specified in the book, except for one property.
5. The "Connected" property does not want to be set to value "true". Each time I try to set that value to true I get the message "unable to load dbexpmysql.dll"

Please help

When is MySQL 5.5 become Globally AVailable(GA)? (no replies)

$
0
0
Hi,
Any idea about a possible date of release of MYSQL 5.5 as a GA. The performance numbers reported by MySQL for 5.5 is mindblowing in some scenarios.

If we know the date we can plan our product testing.

Any idea about possible datae. Presently its release candidate.

Regards
Zunil

Fetching latest download (1 reply)

$
0
0
Hello, I'm trying to get the latest version for a user and project from the database.The structure of the database is like this:
id pid userid version
1 1 2 0.0.9
2 2 2 0.0.4
3 3 2 0.0.2
4 4 2 0.0.1
5 5 2 0.0.3
6 6 2 0.0.5
7 7 2 0.1.0
9 1 3 0.0.9
10 6 3 0.0.5
12 6 3 0.0.6

So for userid 3 I would get the following 2 rows:
9 1 3 0.0.9
12 6 3 0.0.6

I experimented using MAX(), but it still returned 0.0.5 to be the latest version, however the id was correct..something like:
SELECT id as latest,pid,userid,version FROM thc_dl WHERE userid='3' GROUP BY pid ORDER BY id DESC
And lots of variants, but none seemed to return the results that I wanted, what am i doing wrong?

Thanks in advance.
Viewing all 7171 articles
Browse latest View live




Latest Images