如何更改magento中的base_url。因为我的网站在我的magento管理员上更改之后就消失了

如何更改Magento中的base_url,因为我的网站在我的magento管理设置上更改了之后就消失了...现在我在该网址上出现了404错误,管理员和前端将无法打开...     
已邀请:
在mysql中执行以下查询(通过phpmyadmin或命令行)以查看当前值是什么:
select * from core_config_data where path like '%base%url%'; 
然后相应地更新
update core_config_data set value = 'http://myhostname/js/' where path = 'web/unsecure/base_js_url';
    
UPDATE `core_config_data` SET `value` = replace(`value`, 'https://www.oldname.com/', 'https://www.newname.com/') WHERE `value` LIKE '%https://www.oldname.com/%';
    
第1步:
mysql -u root -p
按enter键 第2步:输入您的数据库密码 第3步:
select * from core_config_data where path = 'web/unsecure/base_url';
第4步:
select * from core_config_data where path = 'web/secure/base_url';
第5步:
update core_config_data set value = 'https://domain.com/' where path = 'web/secure/base_url';
第6步:
update core_config_data set value = 'http://domain.com/' where path = 'web/unsecure/base_url';
第7步:
exit;
按enter键 第8步:清除会话和缓存 第9步:
/etc/init.d/mysql start
第10步:
sudo service apache2 restart
    

要回复问题请先登录注册