Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- this one also works: sudo apt-get install compizconfig-settings-manager
- Thank
- On Vista (Premium) cmd: taskkill /F /FI "USERNAME eq Quinn" messes up the explorer.exe .. :)
- please help!!!! i got the dreaded unmountable boot volume message..tried all 5 methods to boot.. safe mode..etc and none of these worked it just kept going back to same message..then whilst trying...
- Thank you so much
9 months ago
8 months ago
8 months ago
8 months ago
Copied the csv file into /var/lib/mysql/mydb at my ubuntu box.
*mydb is the name of my database
7 months ago
6 months ago
5 months ago
(idnum,username,md5(password))
how about if i used md5 in my password??
and i want my password field converted into md5.
email me pls. ir_bs756@yahoo.com
5 months ago
please send full code of importing file into mysql database. at my email (ashish@tiainterweb.com)
thanks
1 month ago
4 months ago
2 months ago
2 months ago
1 month ago
If the passwords in your CSV file are not already MD5() then just import them as per the instructions above then run this query:
UPDATE `users` SET `password` = MD5(`password`);
@ashish:
That is the "full code". There is no more. The only step you have to do before this is to create a table that matches the CSV file you already have. No one can tell you how to do that without having your CSV file. Don't forget to modify the query above to match the table you have just created.
@zlid:
No it can't. Fields are given names and types at the same time when the table is created. To assign the names automatically, MySQL would have to also assign the column types automatically which would mean scanning down through the entire CSV file to make sure that there were no letters in a column that started with numbers and finding the longest string in a column that started with a string and so on. There are too many options in table creation to allow it to be left up to software. NULL or NOT NULL ? DATE, DATETIME, TIME, CHAR, VARCHAR or TEXT ? What if you have a column full of numbers but one Excel error message that looks like "#value" ?
You will have to create the table yourself before importing the CSV file.
1 month ago
5 days ago
5 days ago