Skip to main content

​THE INTERVIEWEE WHO HATED ME​

6 years ago a guy looked at me face to face, and boldly told me; "I don't like you!" I immediately fired a response, I asked him that day; "Thank you for the honest feedback, but those that you like, how has it made their life better? How does your liking people pay their bills or take a bank loan? My brother keep your like, I need God's like And that's what guarantees my future. Today I joined a CEO friend of mine in an interview Panel to recruit some new staff, it was a long session, as we returned from a coffee break to continue the hectic interview session, here was this same guy walked in with his grey jacket and CV coming for the interview. Our eyes kissed by fluke, we immediately recognised each other; "the world is indeed spherical", I soliloquized. He felt very uncomfortable through out the interview, one could clearly see the volcanic eruption ongoing in his whole nervous system, he even mistook his date of birth for his last date of empl...

All About Opencart: Add table prefix in mysql database for opencart

All About Opencart: Add table prefix in mysql database for opencart:
Shared:::

Add table prefix in mysql database for opencart

If you ever install an opencart without table prefix, you'll get troubles when using some custom modules. (Especially with the table ORDER, RETURN and OPTION. Because that is same as MYSQL Syntax., you'll get error when calling such as "SELECT * FROM ORDER")

Here is what you do to add prefix on the table.

Enter the database you want to change the table prefix.

put below command in SQL Tab and run it. Just change the RED one. Example : my_prefix_ into oc_
and my_database into yourdatabasename

SELECT Concat('ALTER TABLE ', TABLE_NAME, ' RENAME TO my_prefix_',TABLE_NAME, ';') FROM information_schema.tables WHERE table_schema ='my_database'
run it in SQl Tab in PHPMyadmin.
Copy the results. (Don't forget click Show All, to see all result) and select it from top to bottom using your mouse, and copy it.
Paste it on the notepad first.

and remove these 3 row from the list.
ALTER TABLE option RENAME TO oc_option; (rename manualy)
ALTER TABLE return RENAME TO oc_return; (rename manualy)
ALTER TABLE order RENAME TO oc_order; (rename manualy)
if you put this on below list, it will get error. You'll have to rename it manually one by one. Not using SQL Tab.

Copy the list (list table may vary, don't use my result list, use your result list) because i already delete some lines, because it's to long.
ALTER TABLE address RENAME TO oc_address;
ALTER TABLE affiliate RENAME TO oc_affiliate;
ALTER TABLE affiliate_transaction RENAME TO oc_affiliate_transaction;
ALTER TABLE attribute RENAME TO oc_attribute;
ALTER TABLE attribute_description RENAME TO oc_attribute_description;
ALTER TABLE attribute_group RENAME TO oc_attribute_group;
ALTER TABLE attribute_group_description RENAME TO oc_attribute_group_description;
...
ALTER TABLE url_alias RENAME TO oc_url_alias;
ALTER TABLE user RENAME TO oc_user;
ALTER TABLE user_group RENAME TO oc_user_group;
ALTER TABLE weight_class RENAME TO oc_weight_class;
ALTER TABLE weight_class_description RENAME TO oc_weight_class_description;
ALTER TABLE zone RENAME TO oc_zone;
ALTER TABLE zone_to_geo_zone RENAME TO oc_zone_to_geo_zone;
Copy the list put it on SQL Tab Box and run it.
there you go. please refresh it if you don't see the result changes. just change between database, and back again. you will see all your tables already have a prefix on it.
Don't Forget to manually rename the 3 tables (OPTION, RETURN and ORDER), don't use SQL you'll get error.
First Select the table, then click OPERATIONS Tab,  
Table options
Rename table to
Rename it to oc_order. (example). That's it. 
Thank you for reading. Hope it'll help you.

Comments

Popular posts from this blog

​THE INTERVIEWEE WHO HATED ME​

6 years ago a guy looked at me face to face, and boldly told me; "I don't like you!" I immediately fired a response, I asked him that day; "Thank you for the honest feedback, but those that you like, how has it made their life better? How does your liking people pay their bills or take a bank loan? My brother keep your like, I need God's like And that's what guarantees my future. Today I joined a CEO friend of mine in an interview Panel to recruit some new staff, it was a long session, as we returned from a coffee break to continue the hectic interview session, here was this same guy walked in with his grey jacket and CV coming for the interview. Our eyes kissed by fluke, we immediately recognised each other; "the world is indeed spherical", I soliloquized. He felt very uncomfortable through out the interview, one could clearly see the volcanic eruption ongoing in his whole nervous system, he even mistook his date of birth for his last date of empl...

Pieces of advice

A very poor newly wedded, young couple lived in a small farm. One day the husband made the following proposal to his wife: Honey, I will leave the house: I will travel faraway, get a job and work hard in order to come back and give you the comfortable life that you deserve. I do not know how long I will stay away, I only ask one thing, please wait for me, and while I am away, you should be faithful to me, because I will be faithful to you. His wife agreed, so the young man left. He walked many days until he found a farmer who was in need of someone to help him. The young man offered his services. He was accepted. Therefore he discussed the terms with his boss: Let me work for as long as I want and when I think I should go home, please relieve me of my duties. I do not want to receive my salary. I ask you to save it for me, until the day I leave. The day I decide to go, please give me the money and I will go my way. They agreed on that. So, the young man worked for twenty years witho...

Canton Jones - Hallelujah ft. Deitrick Haddon, DPB,

You're Bigger by Jekalyn Carr (Live Performance) Official Video

Among The Best

Jesus Culture - Awakening: Live From Chicago Album Lyrics 1. Awaken Me 2. Father Of Lights 3. Perfect Love (Father of Lights Reprise) 4. Break Every Chain 5. Glorious 6. My Everything 7. Nothing But The Blood 8. Dance 9. He Is Faithful 10. Burning Ones 11. Holy Are You (Burning Ones Reprise) 12. I Surrender 13. We Are Hungry 14. Fill Me Up Jesus Culture Lyrics provided by SongLyrics.com "...Worship is a lifestyle..." Can't believe I've never forgotten this since high school!!

Skillet - Hero (Official Video)

Jokes . . .

Clever jokes 1) (hip hip array!) ["hip","hip"] 2)  Two bytes meet. The first byte asks, “Are you ill?” The second byte replies, “No, just feeling a bit off.” 3)  A SQL query goes into a bar, walks up to two tables and asks, “Can I join you?” Yo’ mama’s so… 4)  If your mom was a collection class, her insert method would be public. 5)  Your mommas so fat that not even Dijkstra is able to find a shortest path around her. Questions and answers 6)  Q: What is the difference between a programmer and a non-programmer ? A: The non-programmer thinks a kilobyte is 1000 bytes while a programmer is convinced that a kilometer is 1024 meters 7)  Q: How many programmers does it take to change a light bulb? A: none, that’s a hardware problem. 8) Need to grab someone else’s private property Q: “What’s the object-oriented way to become wealthy?” A: Inheritance 9)  Q: Why are Assembly programmers always soaking wet? A: Because they work below C-level. 10) ...

rsync

rsync is a software application for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction. rsync can copy or display directory contents and copy files, optionally using compression and recursion. The rsync utility uses an algorithm (invented by Australian computer programmer Andrew Tridgell) for efficiently transmitting a structure (such as a file) across a communications link when the receiving computer already has a different version of the same structure. The recipient splits its copy of the file into fixed-size non-overlapping chunks, of size S, and computes two checksums for each chunk: the MD4 hash, and a weaker 'rolling checksum'. It sends these checksums to the sender. The sender then compares its ...

Don't Do this Twice, if at all you have to.

Here are 10 career mistakes you won’t make twice. 1. Taking a good job for granted. 2. Assuming that your job will last. 3. Taking a new job too quickly. 4. Burning a bridge. 5. Quitting a job in haste. 6. Failing to negotiate for your value. 7. Putting up with mistreatment at work. 8. Chasing a job opportunity to oblivion. 9. Failing to set boundaries at work. 10. Trusting the wrong person. Even if you try, it’s hard to appreciate a great job while you’re in it. Even though it’s a great job, there are always problems and headaches to deal with. You don’t realize how good the job was until you’re gone. Once you feel that pang “Wow — I didn’t know how good I had it!” you’ll appreciate all kinds of good things — not just jobs, but other good experiences, people and feelings too — more than you did before. source: http://www.forbes.com/sites/lizryan/2016/09/05/ten-career-mistakes-you-wont-make-twice/#760feadc7439