ข้ามไปที่เนื้อหาหลัก

Use phpMyAdmin

phpmyadmin project is open-sourch Used in Management database MySQL Server GUI Model (Web-base Application) Help to work easy ดor example, to create database. to create table database managemen. By the management in front of the website has it.

1. Install phpMyAdmin command.

sudo apt-get install phpmyadmin php5-mysql


- Show display install and display select server. You selected server apache2 by key spacebar and press key tab select OK

2. configure config.inc.php
- The system file to config.default.php (in directory /usr/share/phpmyadmin/libraies) Make a copy of the file in /usr/share/phpMyAdmin by command.

cp /usr/share/phpmyadmin/libraries/config.default.php /usr/share/phpmyadmin

- Then edit file config. config.default.php Will be fixed in the host, user, password and authentication by command

sudo nano /usr/share/phpmyadmin/config.default.php


- Before editing, You press Ctrl+w and insert text cfg['blowfish_secret'] .


cfg['blowfish_secret']=''; Any input value.


- Before editing, You press Ctrl+w and insert text cfg['servers'][$i]['host'] .
- After editing, cfg['servers'][$i]['host'] = 'localhost'; (insert value localhost)


- Before editing, You press Ctrl+w and insert text cfg['servers'][$i]['auth_type'] . (you see value = cookie.)
- After editing, cfg['servers'][$i]['auth_type'] = 'config'; (edit value config)


- Before and After editing, cfg['servers'][$i]['user'] = 'root'; (no edit)


- Before and After editing, cfg['servers'][$i]['password'] = '';


- After editing, Insert password MySql.


- You press key Ctrl+x to save the file config.default.php

3. Test phpmyadmin by Open browser and insert value http://localhost/phpmyadmin (localhost or ipaddress server)

Note : If you can not work to edit file config.default.php

sudo nano /usr/share/config.default.php

Search text $cfg['PmaAbsoluteUri']= ''; by press key Ctrl+w and Editing.

$cfg['PmaAbsoluteUri']= 'localhost/phpmyadmin';

Note : If you can not work. You create link by typing command.

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

4. Use phpMyAdmin
4.1 loging phpmyadmin by http://localhost/phpmyadmin

user : root
password : (for you)


4.2 Create a database. You can create a database in the field "Create a new database"


4.3 Create a table. You can create a table in the field "Create new table on database ..". and press button GO




4.4 Insert Field and type data. and click save button


4.5 Insert data. Select Lift table and on insert button.



- Click GO button

4.6 Viewing information in the table. Clik Browser


4.7 Delete information.




End ::


Next page on click : Install CMS Drupal 7 ubuntu 10.10 system
Reverse page on click : Configure apache to support php

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC เมนบอร์ดเป็นแผงวงจรหลักที่สำคัญที่สุดของคอมพิวเตอร์ ดังนั้น จึงควรรู้จักตำแหน่งของอุปกรณ์ต่างบนเมนบอร์ดเสียก่อน จึงจะสามารถประกอบเครื่องคอมพิวเตอร์ได้ อุปกรณ์หลักที่สำคัญก็มีช็อกเกตสำหรับติดตั้งซีพียู, ช็อกเกตแรม และซิปเซตที่ทำหน้าที่ควบคุมอุปกรณ์ทั้งหมด หัวต่อและสล็อตสำหรับติดตั้งอุปกรณ์และการ์ดต่างๆ รวมไปถึงหัวต่อกับอุปกรณ์ภายนอกที่ต่อออกทางด้านหลังเครื่อง อุปกรณ์ที่ติดตั้งบนเมนบอร์ดได้แก่  1. ช็อกเกตซีพียู (CPU Socket) ช็อกเกตซีพียู เป็นตำแหน่งติดตั้งซีพียู โดยรูปแบบของช็อกเกตจะแตกต่างกันไปตามยี่ห้อและรุ่นของซีพียู การซื้อเมนบอร์ดจะต้องตรวจสอบว่าต้องการใช้กับซีพียูยี่ห้อใดและรุ่นไหน หากซื้อซีพียูที่มีช็อกเกตไม่ตรงกับเมนบอร์ดจะไม่สามารถใช้งานได้ ปัจจุบันจะมีช็อกเกตที่ใช้งานบนเมนบอร์ดคือ Intel LGA 775,  Intel LGA 1150, Intel LGA 1151, Intel LGA1155 และ Intel LGA 2066 ใช้สำหรับซีพียู Intel ทั้งหมด แต่ต้องดูด้วยว่า ซีพียู อินเทลใดใช้ช็อกเกตเท่าไหร่ ส่วน AMD AM4, AMD sTRX4 และ AMD TR4 จะใช้สำหรับ CPU AMD เท่านั้นซึ่งก็เหมือนกับ...

map network drive ด้วย Command prompt

     บ่อยครั้งที่ต้องการใช้ทรัพยากร (เช่น โปรแกรม, ไฟล์เอกสารต่างๆ) จากเครื่องอื่นบนระบบเครือข่าย  หรืออาจจะเป็นเครื่อง Server องค์กร ที่ให้บริการ share file และมีความจำเป็นต้องใช้ไฟล์ร่วมกัน ดังนั้นการที่จะมาคอยใช้คำสั่ง ในการเข้าเครื่องอื่นนั้นค่อนข้างที่จะยุ่งยาก จึงต้องมีการ Map Drive ไว้เพื่อใช้งาน การ Map Drive บนระบบเครือข่ายนั้นก็ยังเป็นเรื่องยุ่งยากของ user ผู้ใช้งาน ซึ่งบางท่านอาจจะ Map Drive บนระบบเครือข่ายไม่เป็น ดังนั้นผมจึงมีวิธีการที่จะ Map Drive บนระบบเครือข่าย ผ่านคำสั่ง Command Prompt ของ window อย่างง่ายๆครับ สิ่งที่ต้องทราบก่อนทำการ Map Drive บนเครือข่าย 1. Drive ที่ต้องการจะ Map ควรตรวจดูใน My Computer ว่ามี Drive อะไรบ้าง และ Drive ที่แสดงใน My Computer นั้น อยู่ในสถานะไม่ว่าง จะไม่สามารถนำมา Map Drive ได้ จะได้เฉพาะที่ไม่มีโชว์เท่านั้น   ( Drive ที่มีใน My Computer จะไม่สามารถ นำมาเป็น Drive ที่เราต้องการจะ Map ได้ เช่น ในเครื่องคอมของเรามี Drive C และ Drive D ดังนั้น Drive ที่ว่างก็จะมีตั้งแต่ Drive E ไปจนถึง Drive Z เลยครับ ...

การสร้าง URL สั้นๆ เพื่อส่งไฟล์ให้เพื่อน

การสร้าง URL สั้นๆ เพื่อส่งไฟล์ให้เพื่อน การที่จะส่งไฟล์ให้เพื่อน เช่น ไฟล์รูป ไฟล์วีดีโอ หรือโปรแกรมอื่นๆ เวลาที่เราก็อปปี้ลิงค์จาก Google Drive นั้น มักจะเป็นลิงค์ที่ยาว หากเราทำการส่งลิงค์ใน Line เพื่อเปิดใน PC แล้วเพื่อนของคุณไม่ได้ติดตั้ง Line ใน PC ไว้ ต้องมานั่งพิมพ์ URL ยาวๆเอา ซึ่งไม่สะดวกสักเท่าไหร่นัก ดังนั้น เราควรทำลิงค์ให้สั้นๆ เพื่อให้เพื่อนของเราเปิดไฟล์ที่เราแชร์อย่างง่ายดาย ตัวอย่าง เช่น เราต้องการส่ง Link ของ ไฟล์ที่เราแชร์ใน Google drive 1. ให้เราวางข้อมูลที่เราต้องการแชร์  ใน Google ก่อน จากนั้นทำการแชร์ไฟล์ และเปลี่ยนสิทธิ์ในการแชร์ให้เรียบร้อย ดังภาพ 2. ให้เข้าเว็บ  https://www.shorturl.at/  แล้วทำการวางลิงค์ที่เราก็อปปี้มา แล้วกดปุ่ม Shorten URL ครับ จากนั้นก็ส่งลิงค์ให้เพื่อนได้เลยครับ