Sie sind auf Seite 1von 3

http://www.docstoc.com/docs/53584404/Distributed-Transaction-Processing-with-MyS QL-XA http://n3uro5i5.lacoctelera.net/post/2008/05/07/configurar-mysql-accesos-remotos Configurar Mysql para accesos remotos GRANT ALL PRIVILEGES ON `lagrutad_gruta`.

* TO 'lagrutad_super'@'*' IDENTIFIED BY 'lagrutadelcristalsuper2013remoto' WITH GRANT OPTION; FLUSH PRIVILEGES; * ; % GRANT GRANT ; FLUSH EXIT; => ALL HOST ALL PRIVILEGES ON `gruta` . * TO 'root'@'%' WITH GRANT OPTION ; ALL PRIVILEGES ON *.* TO 'root'@'*' IDENTIFIED BY 'JAVA' WITH GRANT OPTION PRIVILEGES;

ALTER TABLE `producto` AUTO_INCREMENT=1 alter table producto drop FOREIGN KEY RefProductoMarca14 /* PDO::MYSQL_ATTR_SSL_KEY =>'/path/to/client-key.pem', PDO::MYSQL_ATTR_SSL_CERT=>'/path/to/client-cert.pem', PDO::MYSQL_ATTR_SSL_CA =>'/path/to/ca-cert.pem', PDO::ATTR_PERSISTENT => false, PDO::ATTR_ERRMODE=>PDO::ERRMODE_EXCEPTION */ public static function getTimeStamp() { $objConexion = new Conexion(); $sentencia = $objConexion->query("SELECT CURRENT_TIMESTAMP"); $result = $sentencia->fetch(PDO::FETCH_NUM); return $result[0]; } `ts_update` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html http://derickrethans.nl/storing-date-time-in-database.html http://stackoverflow.com/questions/7617275/in-php-how-do-i-set-default-pdo-fetch -class?rq=1 http://phpmaster.com/working-with-dates-and-times/ PDO::MYSQL_ATTR_USE_BUFFERED_QUERY 0{"codigo":0,"mensaje":["HY000",2014,"Cannot execute queries while other unbuffe red queries are active. Consider using PDOStatement::fetchAll(). Alternatively , if your code is only ever going to run against mysql, you may enable query buf fering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute."]} http://www.sitepoint.com/synchronize-php-mysql-timezone-configuration/ $db = new \PDO('mysql:host=localhost;dbname=test', 'dbuser', 'dbpassword');

$db->exec("SET time_zone='$offset';"); SET time_zone='-06:00'; INSERT TrabajadorAcceso values(NULL,CURRENT_TIMESTAMP,1); SET time_zone='-06:00'; INSERT TrabajadorAcceso values(NULL,NOW(),1); SET time_zone='-06:00'; SELECT NOW(), CURRENT_TIMESTAMP SET GLOBAL time_zone = "-06:00" ; SELECT NOW(), CURRENT_TIMESTAMP SET SET SET SET time_zone = "-05:00" ; GLOBAL time_zone = "-05:00" ; GLOBAL time_zone = 'US/Eastern'; GLOBAL time_zone = 'Europe/Helsinki';

SELECT @@global.time_zone, @@session.time_zone; http://zohoreportsapi.wiki.zoho.com/MySQL-Date-Time-Functions.html#DATE_ADD FUNCIONES DE FECHA $result = mysql_query("update test set col='test' where col_id='1';"); if (mysql_affected_rows()==0) { $result = mysql_query("insert into test (col_id, col) values ('1','test');") ; } contenido VARCHAR(500) CHARACTER SET utf8 NOT NULL,

ALTER TABLE tablename CHARACTER SET utf8 COLLATE utf8_general_ci; VARCHAR(21844) CHARACTER SET utf8 CREATE TABLE tabla( ID int(9) NOT NULL AUTO_INCREMENT, campo1 int(15) NOT NULL DEFAULT 0, campo2 varchar(100) DEFAULT NULL, PRIMARY KEY (ID) ) TYPE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; my.ini character-set-server=utf8 collation-server=utf8_unicode_ci default-character-set=utf8 default-collation=utf8_unicode_ci ALTER database SISCOLE CHARACTER SET utf8 ALTER TABLE texto CHARACTER SET utf8 ALTER TABLE texto CHARACTER SET utf8 COLLATE utf8_spanish2_ci http://dev.mysql.com/doc/refman/5.0/en/string-functions.html

UPDATE servicio SET descripcion=REPLACE(descripcion, '', '') mysqladmin -u {user} -p password {newpassword} mysql -u root -p USE mysql; UPDATE user SET password = PASSWORD("{newpassword}") WHERE User = '{user}'; FLUSH privileges; quit http://geekology.co.za/article/2009/06/how-to-enable-remote-access-to-a-mysql-da tabase-server alter table articulo add constraint FOREIGN KEY fk_art_tipoart (tipoarticulo) references tipoarticulo (id) http://www.bit-util.com/mysql/mysql-database-administration.html mysql_real_escape_string() mysql_real_escape_string() mysql_real_escape_string() http://www.youtube.com/watch?v=hiy7QtbieCE&feature=related http://www.youtube.com/watch?v=7f0-UJggZtE&feature=related http://www.youtube.com/watch?v=MOBWgxruOFk&feature=related http://www.sqldeveloper.net/ http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html How to connect to MySQL database server through SHH tunnel http://www.youtube.com/watch?v=0yunGkxgYcw&feature=related http://www.sqlplex.com/ SSH Tunneling http://dev.mysql.com/downloads/gui-tools/5.0.html http://dev.mysql.com/downloads/gui-tools/5.0.html +++++++++++++ http://www.mysql.com/why-mysql/windows/ << presentaciones ppt ? http://dev.mysql.com/doc/refman/5.0/es/windows-start-service.html http://forge.mysql.com/wiki/Connector_C%2B%2B http://mikengel.com/tutorial-instalar-configurar-mysql-5-5-winwdows-7 http://blogs.digitss.com/database/mysql/mysql-5-5-8-problem-while-creating-new-u ser-sql-error-1364-field-authentication_string-doesnt-have-a-default-value/ JAVA

Das könnte Ihnen auch gefallen