Upgrading to MySQL 5 (for testing)

2004-12-17 Thread Jonathan Villa
I have an installation of 4.1 and 5 running on the same test server... I want to start using 5 for testing but still want to use the same test data I had before... Is it possible to simply point MySQL 5 to the old 4 data dir? -- MySQL General Mailing List For list archives: http://lists.mysql.co

Re: Can't start server.

2004-07-25 Thread Jonathan Villa
Levi Campbell said: > Okay, I've got MySQL installed but now I can't start the server deamon, > when > I try to start it as the root user, I get the following: "Warning: asked > for > 196608 stack space but got 126976" but on the user mysql I get: "bash: > mysqld: command not found." > > What do I

[Fwd: Re: mysql.sock]

2004-07-24 Thread Jonathan Villa
Original Message Subject: Re: mysql.sock From:"Jonathan Villa" <[EMAIL PROTECTED]> Date:Sat, July 24, 2004 1:42 pm To: "Levi Campbe

what exactly is maxdb?

2004-07-24 Thread Jonathan Villa
I'm maintaining 2 instances of MySQL running as slave/master on the same machine. I was asked to install MaxDB on the slave server for testing... The purpose of this post is for clarification... is MaxDB it's own db instance or does it need MySQL running already running... Depending on that answ

Replication on same machine...

2004-06-21 Thread Jonathan Villa
I have MySQL 4.1 installed via rpm. I just installed a new hd because I want another MySQL installation on the same machine but acting as a replication server. At the same time, I want to try out MaxDB on this new installation. Does that mean that I can't set up a master/slave replication with t

delete temp data...

2004-05-20 Thread Jonathan Villa
I'm administering a Red Hat machine which is used soley for MySQL. The person working with the db has more than 15 million records in various tables...they were trying to run some queries to create one table from these many tables. When this was happening, they ran out of disk space. They had abo

Clean up temp files after creating new db

2004-05-19 Thread Jonathan Villa
I'm administering a Red Hat machine which is used soley for MySQL. The person working with the db has more than 15 million records in various tables...they were trying to run some queries to create one table from these many tables. When this was happening, they ran out of disk space. They had ab

RE: host names

2004-03-10 Thread Jonathan Villa
How exactly are you doing it with phpMyAdmin? Not sure if it would be save to a temp dir, I usually get a save as option. Sorry I can't see your batch file because Outlook blocked it, since it was a batch file. I'll be checking my email from my Linux machine later, I'll take a look at it the

RE: host names

2004-03-10 Thread Jonathan Villa
I wonder if he means that he wants to pull data from one db into another using a script of some kind. If that is what you mean, why not give phpMyAdmin a try, unless your hosting company already has it. Many do now a days... Please clarify. -Original Message- From: Paul DuBois [mailto

Re: read only table 'user' at install

2004-03-03 Thread Jonathan Villa
03-03 at 07:27, Victor Medina wrote: > > A few things to try: > > > > 1.- did you create the data dir as root? > > chown mysql.mysql -R /var/dir-where-you-install > > 2.- who owns the mysql data dir and it's parent dirs? > > ls -lka /var/dir-wher

Re: read only table 'user' at install

2004-03-02 Thread Jonathan Villa
ase directory > > On Wed, 2004-03-03 at 07:25, Jonathan Villa wrote: > > Ok, I have installed MySQL many times and have never come across this... > > > > when try to run > > > > ./bin/mysqladmin -u root password 'new-password' > > > > I g

Danger in installing binary for another architecture...

2004-03-02 Thread Jonathan Villa
Ok, I've always used intel machines, but this time I'm stuck using a AMD Athlon(tm) XP 1900+ The only AMD I see for download is the AMD64, which is not what I have and also gives me a warning before installation... So, which should I use? There is Linux (x86, libc6) Linux (S/390) Linux (IA64)

read only table 'user' at install

2004-03-02 Thread Jonathan Villa
Ok, I have installed MySQL many times and have never come across this... when try to run ./bin/mysqladmin -u root password 'new-password' I get the following ./bin/mysqladmin: unable to change password; error: 'Table 'user' is read only' I've never had this happen, and unfortunately do not kn

unable to resolve hostname...

2004-03-01 Thread Jonathan Villa
Ok, I am going about this as I normally have umpting times # scripts/mysql_install_db and I get Neither host 'isdesign.isdesigndev.com' and 'localhost' could not be looked up with ./bin/resolveip Please configure the 'hostname' command to return a correct hostname. If you want to solve this

re: Change from loop to single query

2004-01-02 Thread Jonathan Villa
It wasn't code, just an example to get my question across clearly... I will try the IN, however the manual says "Returns 1 if expr is any of the values in the IN list" I want to do it for every value. So I'm trying to accomplish this in one query: UPDATE users SET status = no WHERE name = bob; UP

Change from loop to single query

2004-01-02 Thread Jonathan Villa
I have a loop which is similar to the following: while(array contains elements) { UPDATE users SET status = no WHERE name = array[i] } great, it works but the query runs many times. I want to make only one call to the database and have all the elements in the array be included in the query --

Lotus Notes/Script...

2003-09-15 Thread Jonathan Villa
Has anyone every connected Lotus Notes/Script to MySQL? Someone asked me about it and I can't seem to find any information on Google... and I don't know much of MySQL... Would I have to have built MySQL with ODBC support? I installed the binary so wouldn;t this already be available... -- MySQ

RE: How to correct error code 1006

2003-09-05 Thread Jonathan Villa
Check the ownership (and permissions) of your . Maybe your is owned by user "mysql" and not "mysqladmin" and then "mysqladmin" can't write to . You may find what your datadir is with: # mysqladmin var | grep datadir Hope this helps, On Fri, 2003-09-05

How to correct error code 1006

2003-09-05 Thread Jonathan Villa
I installed MySQL 4.0.14-standard from binary onto a Red Hat 8.0 system. I always follow the steps described in INSTALL-BINARY as well as review what shows up when I type ./configure. The only thing I did this time around was that I changed the user's name from mysql to mysqladmin. I get the fol

Small problem installing on FreeBSD

2003-07-15 Thread Jonathan Villa
I've installed MySQL on Linux more than a few times... so I got the process down... however, now I am trying to install on FreeBSD. This what I am doing... 1. tar zxvf mysql...freebsd.tar.gz -C /usr/local/mysql 2. cd /usr/local/mysql 3. ./configure (just to get the message) I get the following...

Dropping table using Select result

2003-07-09 Thread Jonathan Villa
I have a shopping cart which creates temporary tables in the format of zorder_; These tables are used to hold a customers order while they shop and after checking out, it is dropped. The values of the shopping cart are put together in an HTML table and stored as their history. What I want to

Dropping table using Select result

2003-07-08 Thread Jonathan Villa
I have a shopping cart which creates temporary tables in the format of zorder_; These tables are used to hold a customers order while they shop and after checking out, it is dropped. The values of the shopping cart are put together in an HTML table and stored as their history. What I want to

RE: Mysql / PHP image link problem.

2003-06-04 Thread Jonathan Villa
You'll have to check if the result is NULL or not. Try this " : ""; ?> This is print out nothing if your result is equal to null. On another notes, how do you specify the width and height of this image? Or the alt tag, or set the border so that on older versions on Netscape it does not defau

RE: Warning suppression?

2003-03-04 Thread Jonathan Villa
Is your database configuration the same on both environments? Usually this error comes querying for the wrong table/column name. I have also seen this error when, for example, customer_id = NULL, and in my script I say WHERE customer_id = $customer_id. ---> Jonathan -Original Messag

RE: Querying for performance...

2003-03-04 Thread Jonathan Villa
AIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Querying for performance... At 13:19 -0600 3/31/03, Jonathan Villa wrote: >All, > >I have been writing my applications using PHP/MySQL for about a year and >a half now. During this time and up to now, there hasn't been anything >wron

Querying for performance...

2003-03-03 Thread Jonathan Villa
All, I have been writing my applications using PHP/MySQL for about a year and a half now. During this time and up to now, there hasn't been anything wrong with my apps; however, I need to know if what I am doing is the best route for optimal performance. So I ask these questions: 1. How

RE: Is this query possible...

2003-02-19 Thread Jonathan Villa
Well, I thought I could figure it out but I guess I couldn't. This is exactly what I want to do... //Using Access now, but when I use MySQL, I can just get the last insert id. $itemID = $_POST['item_id']; $itemQty = $_POST['item_qty']; $itemPrice = $_POST['price']; $orderID = Will be a value take

Is this query possible...

2003-02-19 Thread Jonathan Villa
All, Is this query possible to do: I am going to select an id from a table SELECT order_id FROM orders WHERE order_start = 1324 I will then use the order_id from this query and insert it as well as some others values I have into another table. So in summary, I want to perform a SELECT and IN