Ola a todos, como remover no login dos clientes o xxx_ que veio durante a importação no mkauth.
Já tentei por mysql e nada:
MariaDB [mkradius]> UPDATE sis_cliente SET login=REPLACE(login, 'xxx_',''), WHERE login LIKE 'xxx_%';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE login LIKE 'xxx_%'' at line 1
Alguem pode me ajudar?
Respostas
Resolvido.
mysql -uroot -p
Senha: Vertrigo
use mkradius <<<< selecionar o banco de dados.
UPDATE sis_cliente SET login=REPLACE(login, 'xxx_','') where login like 'xxx_%'; <<< Comando Correto.