typescript is a unix command/property not a mysql command. So you cannot evoke the script command from the mysql prompt. When you are at the mysql prompt you can only run mysql commands. So, exit out of the mysql prompt and that should bring you to the unix prompt and there you want to start your script and then go to mysql prompt and run show/describe tables.
Or, when you first log into your ugxx account then run your script command. After you do the mysql stuff you will exit out of mysql, then exit out of typescript then exit out of unix.