change the flat datebase to mysql database for commerce-cgi 4.61

I know there are many programming experts here.

Maybe someone can tell me if it is possible to change the flat database "products.txt" in  commerce-cgi 4.61 to a mysql database. And if it is possible and not to costly, if they might be able to tell be whom or where to look? I don't want to change my software, because I have to many files and I like the software that I have. I really don't want to start all over unless I really have too.
starviewAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MurpheyApplication ConsultantCommented:
Hi Starview,

If your "database" is a CSV, you can import in mySql directly.

load data local infile 'products.txt' into table tblUniq fields terminated by ','
enclosed by '"'
lines terminated by '\n'

Fixed format is also possible, but I prefer to transform that first via e.g. Excel end save it as CSV
0
starviewAuthor Commented:
No it just a txt file as shown below:


180|Western_Accessories!Belts_Buckles|18.70|FR-802-Germam Silver Buckle|buckles/standard/FR-802.jpg|Small Horsehead German Silver Buckle, 2-3/4" x 2" |||buckles/large/mini-FR-802.jpg||||%%OPTION%%blank-option.html
181|Western_Accessories!Belts_Buckles|21.10|FR-803-Germam Silver Buckle|buckles/standard/FR-803.jpg|Small Bucking Bronco German Silver & Abalone Buckle, 3" x 2" |||buckles/large/mini-FR-803.jpg||||%%OPTION%%blank-option.html
0
MurpheyApplication ConsultantCommented:
Then you have to change the " fields terminated" option  into  '|'

load data local infile 'products.txt' into table tblUniq fields terminated by '|'
enclosed by '"'
lines terminated by '\n'
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

starviewAuthor Commented:
I don't think I really know what you are saying, I am not much of a programmer
0
MurpheyApplication ConsultantCommented:
If you have installed MySQL, you have the SQL console (Command line) there you can type the command to import.

You also can install the MySQL Workbench, then you have a graphical interface with import  option etc.
0
starviewAuthor Commented:
This is way out of my  knowledge. This a software I have installed on a hosting company.  

I though someone might have know about commerce-cgi software and if this could be done with it.
0
MurpheyApplication ConsultantCommented:
If you login by your  hosting company, you will probably have a MySQL console, Import is part of that console.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
starviewAuthor Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.