Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- mod_auth_cas.so error: undefined symbol: SSL_connect
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- JavaScript Arrays and Associate Arrays
- Design date and signature box in Latex
- Install APXS in Redhat Linux
- super(props) in React
- jQuery, toggle the display
- PHP function for input sanitizing
Showing posts with label phpmyadmin. Show all posts
Showing posts with label phpmyadmin. Show all posts
Thursday, December 13, 2018
Export excel in PHPMyADmin
Click Export,
Under Format, from dropdown menu select
OpenDocument Spreadsheet
and click go button
Thursday, January 8, 2015
Reset PHPMyAdmin
To reset PHPMyAdmin in Linux:
- Stop the MySQL server
sudo service mysql stop - Start mysqld
sudo mysqld --skip-grant-tables & - Login to MySQL as root
mysql -u root mysql - Change MYSECRET with your new root password
UPDATE user SET Password=PASSWORD('MYSECRET') WHERE User='root'; FLUSH PRIVILEGES; exit; - Kill mysqld
sudo pkill mysqld - Start mysql
sudo service mysql start - Login to phpmyadmin as root with your new password
C:\xampp_php5.4\phpMyAdmin\config.inc.php
Monday, August 25, 2014
Rename a databse in PHPMYAdmin
I want to update my database wiki in localhost from another server using PHPMyAdmin.
1. In PHPMyAdmin, select database you want to rename, click Operation at the top menu and rename the database, for example rename wiki to wikiold
2. Click Databases at top menu and create database wiki.
3. Export wiki database from another server in sql format using PHPMyAdmin.
4. Import wiki database to localhost in PHPMyAdmin.
localhost wiki database is updated.
Wednesday, August 20, 2014
Create triggers in PHPMyAdmin
To create triggers in PHPMyAdmin, click More at the top menu, click Triggers.
1) Click Add trigger
2) create a trigger name such as date trigger
3) input table name for your trigger in Table
4) Select Time from: Before, After
5) Select INSERT, UPDATE, DELETE
6) In Definition: for example, I want my CreateionDate column equal to current timing
BEGIN
SET NEW.CreationDate = NOW();
END
7) Definer: enter your your email address
Subscribe to:
Posts (Atom)