EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Mysql / export / import (https://www.eqemulator.org/forums/showthread.php?t=19158)

Magoth78 08-19-2005 10:08 PM

Mysql / export / import
 
Hello,

I would like to export 2 columns (name and charname) from the account table.

Once it's done, I'd like to import it in a table called 'access' wich has 2 columns: Login / Password.
- the datas of the 'charname' column will go in the new Login column
- the datas of the 'name' column will go in the new Password column.

Is it possible to do that just with Mysql commands?

Thx,
Mag

sdabbs65 08-20-2005 12:48 AM

Quote:

Originally Posted by Magoth78
Hello,

I would like to export 2 columns (name and charname) from the account table.

Once it's done, I'd like to import it in a table called 'access' wich has 2 columns: Login / Password.
- the datas of the 'charname' column will go in the new Login column
- the datas of the 'name' column will go in the new Password column.

Is it possible to do that just with Mysql commands?

Thx,
Mag

you can outside of mysql

mysqldump -u sdabbs -p account password > accounts.txt

this will dump your passwords into a text file called accounts.
im not sure how to do login and password but if you toy with it you should get it working.

Magoth78 08-20-2005 01:55 AM

This will export the entire account table, sdabbs65. I'd just want the columns: "name" (account's login) and "charname" (character name attached to the account) of the table so I can source them into 2 others columns of a different table.

sdabbs65 08-20-2005 02:23 AM

sql
 
Quote:

Originally Posted by Magoth78
This will export the entire account table, sdabbs65. I'd just want the columns: "name" (account's login) and "charname" (character name attached to the account) of the table so I can source them into 2 others columns of a different table.

No it dont it just get's the password field from accounts.
if you want the names and password you should be able to but I never got 2
fields from a table just 1.


All times are GMT -4. The time now is 10:05 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.