Here is you reference wrong forgien REFERENCES users(from_uid)
in last table.
FOREIGN KEY(from_uid) REFERENCES users(from_uid)
from_uid
not belong to users
This should be
FOREIGN KEY(from_uid) REFERENCES users(uid)
your playLists table
has primary key combination of four columns, so you should supply all these four columns as forieng key in u_share_pl table
.
Another composite key as a reference should be a single constraint like
FOREIGN KEY(from_uid,sid,plname,plmdate,plmtime) REFERENCES playlists(uid,sid,plname,plmdate,plmtime)
Your last table Create should be:
CREATE TABLE u_share_pl(
uid INT NOT NULL,
from_uid INT NOT NULL,
sid INT NOT NULL,
plname VARCHAR(20) NOT NULL,
plmdate DATE NOT NULL,
plmtime TIME NOT NULL,
PRIMARY KEY(uid, from_uid, plname, plmdate, plmtime),
FOREIGN KEY(uid) REFERENCES users(uid),
FOREIGN KEY(from_uid,sid,plname,plmdate,plmtime) REFERENCES playlists(uid,sid,plname,plmdate,plmtime)
);