What is a tablespace and why is it used?

A data file that can hold data for one or more InnoDB tables and associated indexes. There are many types of tablespaces based on the configuration w.r.t the information clubbing per table. These are, a. System tablespace b. File per tablespace c. General tablespace System tablespace contains, InnoDB data dictionary. DoubleWrite Buffer. Change buffer Undo … Read more

Find out free space on tablespace

I use this query column “Tablespace” format a13 column “Used MB” format 99,999,999 column “Free MB” format 99,999,999 column “Total MB” format 99,999,999 select fs.tablespace_name “Tablespace”, (df.totalspace – fs.freespace) “Used MB”, fs.freespace “Free MB”, df.totalspace “Total MB”, round(100 * (fs.freespace / df.totalspace)) “Pct. Free” from (select tablespace_name, round(sum(bytes) / 1048576) TotalSpace from dba_data_files group by … Read more

Error: Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT

A little late here but generally I’ve seen this problem occur when you get a ‘tablespace full’ error when running in a ‘innodb_file_per_table’ mode. Without going into too much detail (more here), the database server’s tablespace is defined by the innodb_data_file_path setting and by default is rather small. Even made larger, the ‘tablespace full’ can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)