element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
NexGen Flight Simuator Nexgen: Demystifying MySQL in Debian Buster
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: phoenixcomm
  • Date Created: 31 Jul 2020 4:31 PM Date Created
  • Views 428 views
  • Likes 1 like
  • Comments 0 comments
  • flight simulator
  • nexgen
  • debian buster
  • mysqldump
  • mysql
  • linux
Related
Recommended

Nexgen: Demystifying MySQL in Debian Buster

phoenixcomm
phoenixcomm
31 Jul 2020

image

As you may be aware that my hosting service eliminated my shared plan. So I did what I did before bring the damn thing down and host it myself. This is an ongoing fight with some wins. Since AT&T offered me IP space and a 1Gb line which I have not seen. The best is about 200Mb, even though their technician says he sees 900Mb.

So the first problem I had was building my RAID 5 box after several old motherboards I got one up.  An Asus motherboard with 6 SATA connectors, hey nothing is that easy I could only see 3 of them which is what I need for the RAID. So I picked up 3 brand new 2Tb Barracudas and stuck them in, configured the array installed LVM on top, and then formatted it with ext. when that was done I created the mount point for it "/export/home"  and mounted the array on it. then I created 3 directories, MySQL, temp, and webs. So far so good. I NFS mounted the backup directory on to the temp and transferred the "files.sql" to the array. "

So this is where it goes sideways. Linux MySQL  files are normally found in "/var/log/mysql/". In the real world not LINUX the only thing in var ar logs!! So now I have to move the "datadir" from "/var/log/mysql" to "/export/home/MySQL". Debian doesn't make things easy either.  After much beating myself up and cussing, I finally found it hiding in "/etc/mysql/maria.conf.d/50-server.cnf".

Next, I had to copy everything to the new dir. "cp -R -p /var/lib/mysql/*    /export/home/MySQL"  where -R is directories copy recursively, and  -p preserve[=ATTR_LIST]:   preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes:   context, links, xattr, all.

For my next trick, I have to explode my <database name>.sql files which where created by mysqldump. The first thing you have to do is issue this command as root from the MySQL prompt: "create database  ><database name>.sql;". This must be done for all of your databases as this will allow the creation of the schema.  From a root prompt, you now issue the following command "mysql -u root -p <database name>  < /export/home/MySQL/<database name>.sql".

At this point, you can issue the following commands from the mysql prompt:
use <database name>;
show tables
etcetera.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube