Welcome to DBA Master ! This blog is dedicated to all things related to database administration , SQL optimization , and performance tuning . Whether you're a beginner or a seasoned DBA, you'll find practical guides, troubleshooting tips, and real-world tutorials to help you work smarter with data. What to Expect: SQL performance tuning tips Indexing strategies Backup and recovery best practices High availability and replication techniques Database creation, configuration, and setup Monitoring queries and scripts for proactive performance management Migration guides across different database platforms Security essentials and best practices Recommended tools for DBAs Real-world error fixes and how to solve them Stay tuned — exciting content is coming soon. Feel free to bookmark and share: www.dbamaster.com ! Thanks for visiting!
select database();
prompt d>
use dbname
dbname>
create database dbname;
use dbname;
create table t1(id int);
CREATE TABLESPACE myspace add datafile 'myspace.ibd';
create table Tt2(id int) TABLESPACE=myspace;
mkdir /datafile
chown mysql /data
CREATE TABLESPACE mysecspace add datafile '/data/mysecspace.ibd';
CREATE TABLE t3(id int) TABLESPACE=mysecspace;
CREATE TABLE t4(id int) DATA DIRECTORY='/data';
show create table t1G;
show create table t2G;
show create table t3G;
show create table t4G;
Comments
Post a Comment