SQL phpmyadmin - Rename database -
i created fresh database in phpmyadmin not contain tables yet since fresh, accidentally made typo. how can rename database?
if happens me execute sql command:
drop database dbname;
and create database. possible rename it? searching found nothing helpful.
i found 2 possible solutions.
- rename via phpmyadmin backend ui (preferable):
or execute sql (only use if database fresh , not contain data yet, otherwise lost!)
create database newname;
drop database oldname;
Comments
Post a Comment