Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    MYSQL




Moving MySQL Data To RAMDisk


On moving my data files from /var/lib to /mnt/ramdisk I seem to be missing something. I've changed every .ini and .conf file I can find (/etc/my.cnf, /etc/init.d/mysql, /etc/init.d/mysqld, /etc/php.ini and /etc/httpd/conf/httpd.conf (for DAV-lock)).

MySQL seems to start ok, but when I use my application through Apache the error message is that MySQL is not running (I think it's just not finding it).




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Running MySQL In RAMDisk
Have a very large database and due to performance requirements it seems that running MySQL in RAMDisk might be a good solution. Access to the database is through PHP. Any suggestions or experiences?

Running MySQL In RAMDisk
Have a very large database and due to performance requirements it seems
that running MySQL in RAMDisk might be a good solution. Access to the
database is through PHP.

Moving Data From MS SQL To MySql
I have a ms sql database with about 100,000 rows of data and I am archive the large text fields into a mysql table. I wrote code (cold fusion) to move the data, but I am having problems with the conversion of some of the characters.

My guess is our site users copied their data from a word document into our system and ms sql supports the character set that was uploaded, but mySQL doesn't, or I have a setting wrong somewhere? If mysql doesn't support the character set is there a way to clean it before I post it to mysql? Code:

Moving The Mysql Data Folder
We have a system that has been running for about one year. The thing is that the mysql data folder is on the c: partition and the diskspace is low, I wan't to move the data folder to the d: partition where it's lots of free diskspace.

So my question is can i stop the mysql server copy the datafolder to the d: partition and edit my.ini regarding the path for the datafolder and start up the mysql server again without bumping in to problems??? Or is there any other suggestions on how to solve this?

I'm going to move the folders on 2 servers (master-- slave mysql servers)

Moving Data From Access To Mysql
I am writing a program in java that is to move the data from MS Access to MySQL. There already is a table structure of the Access database in MySQL, all I need to do is move the data from Access to MySQL. I was hoping that someone may have done this before and could give me some pointers as to which would be the best way to implement this. Any suggestions would be greatly appreciated, the database is not huge so that is not really a factor.

Need Help Moving Data Over
I am moving my forum to a new host, the old host is on linux, the new host is on windows. My biggest problem is that the only access I have to my current database is PHPMyAdmin, this is not installed on my new host, and I have thus far been unsuccessful in trying to configure it. I am able to connect remotely to my new hosts database. Is there any tool that will allow me to export my data through PHPMyAdmin, and import it into my new database? I have tried the official tool from MySql, but it will only import sql files that were made using it.



Moving Data
I have 4 exactly the same tables named inbox, sent, saved and trash with the same table structure. They are used as message folders for a messaging system.
Sometimes there are duplicate msg_id:s when moving the message from one table to another.
How can I avoid this happening? I can always use a different start number for each table in the autoincrement column, but I'd rather have the msg_id reset before it is inserted into the other table. But since I use INSERT ... SELECT *, I don't see any way to do that?

Moving Data From One Table Into Another
I have a users table that has 20 columns (table A). I want to be able to take half of those columns and move them into another table (table B), and use B as a lookup.

Table A (currently)
user_id
fname
lname
ip_address
date_added
I want to make it like this:

Table A
user_id (PK)
fname
lname

Table B
tbl_A_user_id (FK)
ip_address
date_added
The problem is that I have some clients using versions on their site, and need to be able to move the data from A into B, then drop the columns in A without losing data.

Moving Data Around Through Web Pages?
I have a value which needs to be used later in the webpages, how do I send the value of a variable to the other pages, do I need to post it every time the next button is pressed?

Moving Data Between Fields
I have a field that contains some data I want to move into another field. Can someone give me some pointers as to how I can achieve this.

field1. is formatted like so:
<b>misc random text 1 - askjlash1q</b><br><p>&nbsp;by: <b>A black truck</b><p><p>
<b>misc random test 2 - asjhhjas</b><br><p>&nbsp;by: <b>blue truck</b><p><p>

I need to extract the data following by: <b> and preceeding the </b><p><p> tags.

Then I need to insert the extracted data into a different field inside the same record.

Moving Data In Same Table
In the same table, TableOne, I'd like to move information from FieldOne to FieldFour where DoA is null.

Moving Data Between Tables - Subqueries
I'm hitting a wall writing these SQL queries..

I have two tables that i'm interested in with the listed columns
Sub_menu_itemsub_menu_idcontent
Itemsite_idmenu_idsub_menu_idcontent
I need a query that will copy Item.content into Sub_menu_item.content IF Item.site_id > 0 AND Item.menu_id > 0 AND Item.sub_menu_id > 0

Here's what i've come up with so far:

SQL
UPDATE Sub_menu_itemSET Sub_menu_item.content = Item.contentWHERE Sub_menu_item.sub_menu_id = Item.sub_menu_idAND sub_menu_id IN (SELECT sub_menu_idFROM ItemWHERE site_id > 0 AND menu_id > 0 AND sub_menu_id > 0);

lil'

Moving Data And Accounts When Upgrading
Before upgrading my directory structure looks like:

/usr/local/myslq-4.0.21
/usr/local/myslq@ -> mysql-4.0.21

After I install an upgrade it looks like:

/usr/local/mysql-4.0.21
/usr/local/mysql-4.1.12
/usr/local/mysql@ -> mysql-4.1.12

The upgrade instructions then say to run "mysql_fix_privilege_tables" but the privilege tables should not need fixing since the only thing in the mysql-4.1.12/data directory are the new "mysql" and "test" databases and they should not need fixing. Also none of my old user accounts and data are there.

Am I supposed to do something to copy the old data directory to the new data directory and then fix the privilege tables? Something like "(cd mysql-4.0.21; tar cf -) | (cd mysql-4.1.12; tar xf -)"? Or should my data directory be independent of the mysql directory and used from each installation?

Moving Table Data Between Databases
I've recently got a 2 new domains and with that 2 new databases. The name of one of the new databases is different from the database on my old host and I have 2 sites incorporated into that old database. What I'd like to do is split the old database into 2 newly named databases seperating the tables so I end up with the 2 databases ready for the new sites.

The old site doesn't have phpmyadmin installed which is what I'm used to using and this DBTools software doesn't appear to allow me to select the tables I want to dump and export to a new .sql file in multiples.

Moving Data Base From / Var To Home Directory
I'm successfully running MySql under Debian with the data files
in /var/lib/mysql. I would like to move the data base files to my home
directory and have mysql use them from there. How do I do it? Can I just
copy them to my home directory and start mysql with a parameter which point
to the new locaion? Can I do that with mysql starting at boot time?

I just looked at /etc/init.d/mysql and see that it appears to starts mysql
by calling /usr/bin/mysql_safe but there is no such file.

As an alternative to putting it in my home directory, I would be happy
putting the files in /usr/local. Can I do that without rebuilding mysql?

The reason I want to do this is that I want to install a new version of
Knoppix and that will format and clean out the / partition and I don't want
to loose the data I have in /var/lib/mysql. Could I just
save /var/lib/mysql and restore it after installing the new version of the
system?

Moving Around In Mysql
within mysql if I am typing several lines of code and i realize I made typing mistake on a line how do I navigte backwards to change that typing error without having to type everything all over again? Also if i get a sql error is there anyway I can hit key that brings up the entire block of typed code ? The only thing i see that I can do is hit my up arrow which only brings up the last line of code i typed.

Moving Mysql Db
I have two domain names. www.myfirstdomain.ca and www.my_second_domain.ca (not real of course).

I set up my oscommerce site on the www.myfirstdomain.ca because the second was not available. I now have the second domain (www.my_second_domain.ca), which is my company name. I now need to transfer ALL my data and files over to the new domain.

I have one (1) host and both domains are pointing to the same site.
When I set up Oscommerce I put all my data (products) in the catalog folder.
So the path to my site would be www.myfirstdomian.ca/catalog
I have copied every thing from that path to the main path: /html (which is the public folder) The name of the mySql database is myfirstdomain.ca_oscommerce.
When I check the links on all my pics they all point to the first domain.
Now, when I open my site I get my index page. The url is correct. When I click on any of the category links I am taken to an error page.

How Do I transfer everything to my company domain, have the links changed to where the images are now stored and have everything work the way it use to?

Moving MySQL
We've run out of disk space and would like to move either the entire MySQL =
system or if possible move the databases. Can this be done without any =
difficulties?

Moving MySQL
We've run out of disk space and would like to move either the entire MySQL =
system or if possible move the databases. Can this be done without any =
difficulties?

Moving To MySQL 4.1
Is there any safe way to install MySQL 4.1 on different port, leaving 3.x version on standard 3306 on Linux? I can't find any material on the topic

Moving From MS Access To MySQL
I have a database application written in asp that works with an ms access database.

I am moving the application to a server that supports asp but not access. It has mysql available.

I have used a converter programme to create a mysql dump file which I have checked I can use to create a new mysql copy of the original access database. So far, so good.

I understand that changing the connection file from access to mysql working is not difficult but I cannot find a suitable tutorial to explain this or how/where/if I need to edit my existing asp files.

Moving Mysql To Another Server
I'm looking to move my website to a new server. Is it easy to backup, install and restore mysql? Is there a step by step process I can follow? I've had a look around but can't find anything specific for mysql.

Moving An Access DB To MySQL
I have a client that I am thinking of migrating to MySQL and away from MS Access. I have database skill as far as Oracle Administration and SQL statements but am definitely not knowledgable when it comes to front ends.

I know that MS Access has an easy VB WYSIWYG form builder (at least the last time I looked at it which is about 4 years ago) and I am curious as to what is available for building forms for MySQL.

Getting their data from MS Access to MySQL will be a snap but I don't know how I would provide them with a graphical front end to allow them to add/delete data. I know WYSIWYG is laughable but I am not a programmer and their needs will be quite small. Probably only 2 or 3 screens needed for manipulation of data.

Moving MySQL Database
I have to move a MySQL database from one server to another one and all the files that form the website.Basically I'm trying to get some comments and ideas before I do this task.

Moving MySQl Database
I've tried moving the database from one partition to another and now I'm =
getting the following error:
# Starting mysqld daemon with databases from /data/mysql
030820 23:48:08 mysqld ended
When I issue #/ /usr/share/mysql/mysql.server start

Anyone have any idea what's gone wrong. I changed the datadir in both =
/etc/my.cnf and /usr/share/mysql/mysql.server.

This is on a MySQL-3.23.55-1 server.

Moving A MySQL Database
I know that you can export the sql to a file, which I have done already. But to make it work on the new server what do I do? Do I just upload it and run the file? Or do I need to SSH it? Or can I write a PHP script to create the database and subsequently insert all the data?

TIMEDIFF Failure After Moving From MySQL 4 To 5
I've already figured out what has happened, but check out this query:

SELECT
TIMEDIFF(&#392007;-01-31 01:01:01',&#392006;-06-12 01:01:01') as timediff,
DATEDIFF(&#392007;-01-31 01:01:01',&#392006;-06-12 01:01:01') as datediff,
UNIX_TIMESTAMP(&#392007;-01-31 01:01:01')-UNIX_TIMESTAMP(&#392006;-06-12 01:01:01') as unixtimediff
Pretty straight forward, however, observe the results in Mysql 4 vs. 5:

MySQL 4:

+------------+----------+--------------+
| timediff | datediff | unixtimediff |
+------------+----------+--------------+
| 5592:00:00 | 233 | 20134800 |
+------------+----------+--------------+

MySQL 5:

+-----------+----------+--------------+
| timediff | datediff | unixtimediff |
+-----------+----------+--------------+
| 838:59:59 | 233 | 20134800 |
+-----------+----------+--------------+
Drove me NUTS till I figured out that MySQL 5 truncates your values! Yay! See the warning after the mysql 5 query reads:

+---------+------+----------------------------------------------+
| Level | Code | Message |
+---------+------+----------------------------------------------+
| Warning | 1292 | Truncated incorrect time value: &#395592;:00:00' |
+---------+------+----------------------------------------------+
My solution, already shown with the unixtimediff, was pretty easy and looks like it will work just fine.

I couldn't find note of this change anywhere, so I figured I'd post in case anyone ever hits this wall. (Actually, I did find that in the manual for 4.1 and 5 it states the max range is '-838:59:59' to õb:59:59' however, this was obviously not enforced in 4. :/ )

Need Some Guidance About Moving From Oracle To Mysql
I currently work with Oracle 9i databases and a couple of Oracle Developer versions. Ive been wanting to learn more about mysql as a replacement for an Oracle database in some applications. The question is, what is the preferred development tool to use for the user interface to replace Oracle forms and reports?

Moving An Existing MySQL Database From
I have an existing database already created on 4.0.25-standard. It is too large to import to my new server via phpmyadmin, so I'm using mysqldump. The new server has MySQL 4.1.12 instead of 4.0.25. I am running this command:

mysqldump -u root -p starfall < smf1 --create-options --compatible=mysql40

but I get this: Code:

Moving Mysql Database From MAC To Windows
I have to move a database from a MAC with MYSQL to Windows. The MAC has MYSQL 4.0.18 loaded.

The phpmyadmin is not working on MAC machine so I tried to just copy the database files to the Windows machine mysql 4.0.21

After this mysql crashes when I try to open the databases with phpmyadmin.

A popup window appears and called DBUG Test signal Confirming this message causes mysql to fail.
In my phpmyadmin it get the message server not responding.

I also tried to recreate the empty tables on the Windows machine and just copy the .MYD and .MYI files into the Windows machine, leaving the .frm files. This worked on some tables but on others I have corrupted data in it and some tables are shown as in use.

The MAC mysql database does have 2 files that the Windows doesn't. ._.DS_Store and ._DS_Store.

Are the MYSQL files for those 2 system not compatible? If not How can I convert the database files? The database is still working on the MAC so I do not think the database is corrupt.

Moving Mysql Backup From Version 4.1.12 To 5.0.3
i dont have much experience in databases or Mysql.i have my data
in development m/c with Mysql 4.1.12, i have to move them to production
m/c with Mysql 5.0.3 .when tried it showed error with displaying

[root@hostname mysql]# mysql -u root mydatabase < backup1.sql
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near 'r
o
EJÃlÐ¥>~þ¯zE+&T_µ_Pã
5'%TÂ?Ud$V `ò·êÈj² Èçª1i½Dål'
at line 1
[root@hostname mysql]#

was i am going wrong?

any ideas for making happen moving backup from Mysql 4.1.12 to Mysql
5.0.3 ?

Moving MySQL From Windows To Linux
Is it possible to develop a database on Windows and then copy it to Linux? In Oracle it's not possible to simply copy the database between platforms, I just wondered if MySQL is the same.

Moving Mysql To Another Hard Disk
I have a web based intranet application (php) that uses a mysql database. The server has just had a new drive added to it and am looking for a way to move the database from the current c drive to this new drive.I'm looking for a way to either:

move the entire database to the new drive (in which case do i have to do anything within the code - the database name is still the same and i'll presume another drive is still localhost can)

Can i just make Mysql save data into the new drive (and also move just the old data file to the new drive leaving everything else as it was).

Moving MySql From Development Server To Other Servers
I am using Dreamweaver with php, mysql and Godaddy for Hosting. I have a website developed that runs fine locally using the localhost for both the Web app and MySql. What is the process that I go to to move or export the databse from the development server to Godaddy's MYSQL server. I have not found an "export" function using MySQL Adminstrator, or MySQL Control Center.

Moving A Forum (phpbb2) With Apache And MySQL
I was wondering if there was a tutorial for moving a complete server from one PC to another and have it exactly like it was, besides IP's exc exc. If you could give me a few steps to back up all my stuff in MySQL and PHPBB it would answer my question.

Moving Mysql Database From Linux To Windows
I have to move my mysql 5 database from linux to windwos system. Can this be done by moving files from data folder or do I have to dump the data then import it back to new system?

Moving MySql Database To Hosting Server
I'm having a MySql database running fine on my local machine (WinXp Pro), where Apache2 is running as a local server.

My database application (PHP) is doing everything it needs to do on my local server.
The next step is to move my database to my hosting site. I see that my hosting site (siteflip.com) is using cPanel as an interface to my web space. I can create new MySql databases and via phpMyAdmin I can create new tables and content.

However, I'm looking for a way to get rid of these things.  I would like to put my MySql files (so, tables and records, the whole content of my database), which are on my local PC (in the 'datadir' directory), directly on the site.

Does anyone know if this is possible and so, how it can be done?

Moving Mysql Databases From Laptop To Workstation
does anyone know how to migrate a mysql database from place of creation(my laptop) to a workstation. I am using mysql browser and when i open it up and try and select on the databases this error appears for each of the tables.

Can't open file: <tablename>.InnoDB (errno:1) .

Moving Database To Separate Drive After I Installed Mysql 5
I am trying to move my db data directory from /var/lib/mysql to /mounted_drive/mysql on a redhat 4 EL box. I am running mysql 5. I found a site with some pretty good instructions but it seems that they may be outdated. Code:

Moving From MySQL 3.23.54 To Newest Verision Of MySQL
my department currently uses an old version of mySQL (mySQL 3.23.54). We are getting a new server and the guys in charge want to put the newest version of mySQL on the server so we can move our website. We are also using phpMyAdmin and I know there is an "Export" feature I can use to export (or backup) all the tables we have.

But I wanted to know. Since the version we have is kinda old, is there anything I should do or any roadblocks I should know about so that when I import the tables into the new mySQL database, everything goes smooth.

Help With Moving Data From One Table Field To Another Table Field
I am a relative newbie at this so would appreciate help - already searched and found and tried several suggestions for similar issues - but nothing quite worked!

I need to move a membership roster to another table in the same db - currently the data is at jos_users1 and it needs to be moved to jos_users. The jos_users1 table has only one field, named email.

The jos_user table has several fields including the email field, and already has data in it - so I don't want to overwrite the table - just upload the additional email addresses into the table.

Does Mysql Store Max Size For Data Type Each Time, Or Only What Is Needed For Specific Data?
If I use MEDIUMTEXT, which (if I understand correctly) has a max size of 65k, does mysql use the entire size each time data is written to that column? I have a text field on my site that users fill in, but more often that not, they don't. However, when they do, it can be 1000 bytes or more. Am I wasting space using MEDIUMTEXT or does mysql only set aside 1000 bytes for that column if the data is only 1000 bytes?

Moving From 4.0.24 To 5.0.22
I have a MySQL server running with four databases on version 4.0.24. I have a newer server running 5.0.22 and I would like to move all these databases to it. Needless to say I tried to backup from old and restore to new and that did not work.

Moving DB
I have a database that is getting too big for the drive it's on. How do =
change my.ini to make it see everything after I move the mysql/data =
folder?? or is there more to it than that?? BTW - I'm running on Windows =
NT 4.0 SP6 w/ gig of ram...

Moving Db From 4.1 To 5.0
OLD server
===========
MySQL 4.1.14-log
myisam + innodb tables (one database)
91 table(s)
1,085,558 records -> 308.9 MB (from phpmyadmin)

after 'mysqldump -u root -p database > database.sql' the 'database.sql' file has 226,871,673 bytes (216MB)

NEW server (after inserting the dump)
==========
MySQL 5.0.41
91 table(s)
1,098,991 records -> 280.6 MB (from phpmyadmin)

Can someone please tell me what could be the cause of having the difference between 308.9 (old database) and 280.6 (new database). Also note that the two servers have different MySQL versions running.

Moving To Sql
hi ive just moved to my sql from access database ..
i have some questions ,

how i can access the databases in the server ,

is there any graphical tool to build databases and tables (like in access .. )
and if not how can i do it ?
the server is located on linux machine ..

how can i edit user properties like - to which database he can access and if he can write.

Moving A DB
I am running Windows XP and Have mySQL 5. I would like to move a table from one computer to another? Is there a well known procedure for this?

Moving DB
How can i move db from server to server ?
(both of them have SSH account)
first domain is www.xxx.com
db name : old_db
server : localhost
user : admin
pass : 123

Second domain is www.yyy.com
db name : new_db
server : localhost
user : root
pass : 321

What MYSQL Data Type Can Hold Multiline Text Data?
say a file:

name#1 (start)
line2
line3
...
line14 (end)
name#2
....
name299
....
<eof>

It's really too messy to split into fields, file process and put it in tabular format. Every 14 lines there's a new "record" - I use the term record very loosely because by record I mean one data item eg. The new "records are separated by name# - so when I see a new name# I know it's a new "record". So in mysql I might have one primary key and just one other filed per a record that would be multiline text.

What I an specifically asking is:

What MYSQL data type can hold multiline text data?


Copyright © 2005-08 www.BigResource.com, All rights reserved