witam
czy zdarzylo sie wam miec kiedys sytuacje, gdy skladnia mysql byla 100% poprawna, a mimo tego nie chciala sie wykonac ? ja mam tak teraz ...
oto składnia mysql:
drop database if exists eschat;
create database eschat;
use eschat;
create table es_config ( owner varchar(16) not null, title char(255) not null, header char(255) not null );
insert into es_config values('kubarek', 'Tytuł, 'Witam !');
grant select, insert, update, delete
on eschat.*
to kubarek@localhost identified by 'jakieshaslo';
po skopiowaniu jej do konsoli mysql wszystko dziala, natomiast z poziomu php juz nie, blad jest nastepujacy:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; create database eschat; use eschat; create table es_config ( owner v' at line 1
[???]
z bazą łączę się poprawnie
jest jakies rozwiazanie tego problemu ?