Renaming a MySQL table changes the name applications must use when querying it. Before making the change, confirm the application configuration, table relationships, scheduled tasks, and any code that refers to the current name.
Rename through phpMyAdmin
- Create a fresh database backup and sign in to phpMyAdmin from cPanel.
- Select the correct database and verify the table name and row count.
- Open the table's Operations page and locate the rename or move-table control.
- Enter the new table name, check spelling and prefix, then confirm once.
- Verify the table appears under the new name and inspect a few expected records.
Update and test the application
Update application configuration or code references that use the old table name. Test the affected feature, forms, reports, and scheduled tasks. If anything fails, restore the old name or recover from the backup and check database permissions. Renaming a table does not automatically update every external script or integration.
Some applications expect specific table prefixes. Do not rename core application tables unless the application documentation or developer confirms the change is supported. Contact BOSS Support if phpMyAdmin shows an error or the table is managed by a packaged application.
BOSS Solution: https://boss.com.bd | Client Area: https://boss.com.bd/clientarea.php | Support: support@boss.com.bd.
একটি MySQL টেবিলের নাম পরিবর্তন করলে সেটিকে জিজ্ঞাসা করার সময় অ্যাপ্লিকেশনগুলিকে অবশ্যই নাম ব্যবহার করতে হবে৷ পরিবর্তন করার আগে, অ্যাপ্লিকেশন কনফিগারেশন, টেবিল সম্পর্ক, নির্ধারিত কাজ এবং বর্তমান নাম উল্লেখ করে এমন যেকোনো কোড নিশ্চিত করুন।
phpMyAdmin এর মাধ্যমে নাম পরিবর্তন করুন
- একটি নতুন ডাটাবেস ব্যাকআপ তৈরি করুন এবং cPanel থেকে phpMyAdmin-এ সাইন ইন করুন।
- সঠিক ডাটাবেস নির্বাচন করুন এবং টেবিলের নাম এবং সারি গণনা যাচাই করুন।
- টেবিলের অপারেশন পৃষ্ঠাটি খুলুন এবং পুনঃনামকরণ বা সরানো-টেবিল নিয়ন্ত্রণ সনাক্ত করুন৷
- নতুন টেবিলের নাম লিখুন, বানান এবং উপসর্গ পরীক্ষা করুন, তারপর একবার নিশ্চিত করুন।
- যাচাই করুন যে টেবিলটি নতুন নামে উপস্থিত হয়েছে এবং কয়েকটি প্রত্যাশিত রেকর্ড পরিদর্শন করুন৷
Update করুন এবং
Update অ্যাপ্লিকেশন কনফিগারেশন বা কোড রেফারেন্স পরীক্ষা করুন যা পুরানো টেবিলের নাম ব্যবহার করে। প্রভাবিত বৈশিষ্ট্য, ফর্ম, রিপোর্ট, এবং নির্ধারিত কাজ পরীক্ষা করুন। কিছু ব্যর্থ হলে, পুরানো নাম পুনরুদ্ধার করুন বা ব্যাকআপ থেকে পুনরুদ্ধার করুন এবং ডাটাবেস অনুমতি পরীক্ষা করুন। একটি টেবিলের নাম পরিবর্তন করলে তা স্বয়ংক্রিয়ভাবে প্রতিটি বাহ্যিক স্ক্রিপ্ট বা ইন্টিগ্রেশন আপডেট করে না।
কিছু অ্যাপ্লিকেশন নির্দিষ্ট টেবিল উপসর্গ আশা করে। মূল অ্যাপ্লিকেশন টেবিলের নাম পরিবর্তন করবেন না যদি না অ্যাপ্লিকেশন ডকুমেন্টেশন বা বিকাশকারী নিশ্চিত করে যে পরিবর্তনটি সমর্থিত। যদি phpMyAdmin একটি ত্রুটি দেখায় বা টেবিলটি প্যাকেজ করা অ্যাপ্লিকেশন দ্বারা পরিচালিত হয় তাহলে BOSS সমর্থনের সাথে যোগাযোগ করুন৷
BOSS Solution: https://boss.com.bd | ক্লায়েন্ট এরিয়া: https://boss.com.bd/clientarea.php | সমর্থন: support@boss.com.bd।